Merge pull request #1523 from deguif/master
Moved setter for repository before getter in BasePackage classpull/1520/merge
commit
1539c54a1d
|
@ -114,11 +114,9 @@ abstract class BasePackage implements PackageInterface
|
||||||
return $this->id;
|
return $this->id;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getRepository()
|
/**
|
||||||
{
|
* {@inheritDoc}
|
||||||
return $this->repository;
|
*/
|
||||||
}
|
|
||||||
|
|
||||||
public function setRepository(RepositoryInterface $repository)
|
public function setRepository(RepositoryInterface $repository)
|
||||||
{
|
{
|
||||||
if ($this->repository) {
|
if ($this->repository) {
|
||||||
|
@ -127,6 +125,14 @@ abstract class BasePackage implements PackageInterface
|
||||||
$this->repository = $repository;
|
$this->repository = $repository;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getRepository()
|
||||||
|
{
|
||||||
|
return $this->repository;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* checks if this package is a platform package
|
* checks if this package is a platform package
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue