Update naming of repositories

main
Jordi Boggiano 13 years ago
parent 6dbec8718d
commit 3da43e751d

@ -20,8 +20,8 @@ namespace Composer\Package;
class MemoryPackage extends BasePackage class MemoryPackage extends BasePackage
{ {
protected $type; protected $type;
protected $repositoryType; protected $sourceType;
protected $repositoryUrl; protected $sourceUrl;
protected $releaseType; protected $releaseType;
protected $version; protected $version;
protected $license; protected $license;
@ -67,33 +67,33 @@ class MemoryPackage extends BasePackage
/** /**
* @param string $type * @param string $type
*/ */
public function setRepositoryType($type) public function setSourceType($type)
{ {
$this->repositoryType = $type; $this->sourceType = $type;
} }
/** /**
* {@inheritDoc} * {@inheritDoc}
*/ */
public function getRepositoryType() public function getSourceType()
{ {
return $this->repositoryType; return $this->sourceType;
} }
/** /**
* @param string $url * @param string $url
*/ */
public function setRepositoryUrl($url) public function setSourceUrl($url)
{ {
$this->repositoryUrl = $url; $this->sourceUrl = $url;
} }
/** /**
* {@inheritDoc} * {@inheritDoc}
*/ */
public function getRepositoryUrl() public function getSourceUrl()
{ {
return $this->repositoryUrl; return $this->sourceUrl;
} }
/** /**

@ -10,7 +10,7 @@
* file that was distributed with this source code. * file that was distributed with this source code.
*/ */
namespace Composer\DependencyResolver; namespace Composer\Repository;
use Composer\Package\PackageInterface; use Composer\Package\PackageInterface;

@ -10,7 +10,7 @@
* file that was distributed with this source code. * file that was distributed with this source code.
*/ */
namespace Composer\DependencyResolver; namespace Composer\Repository;
/** /**
* @author Nils Adermann <naderman@naderman.de> * @author Nils Adermann <naderman@naderman.de>
Loading…
Cancel
Save