From 3c21dc1499db1d6c4d725d942dcd6e1a705af3c3 Mon Sep 17 00:00:00 2001 From: deguif Date: Thu, 24 Jan 2013 13:04:37 +0100 Subject: [PATCH] Moved setter before getter and added @inheritDoc --- src/Composer/Package/BasePackage.php | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/src/Composer/Package/BasePackage.php b/src/Composer/Package/BasePackage.php index b28de157d..f1e71010e 100644 --- a/src/Composer/Package/BasePackage.php +++ b/src/Composer/Package/BasePackage.php @@ -114,11 +114,9 @@ abstract class BasePackage implements PackageInterface return $this->id; } - public function getRepository() - { - return $this->repository; - } - + /** + * {@inheritDoc} + */ public function setRepository(RepositoryInterface $repository) { if ($this->repository) { @@ -127,6 +125,14 @@ abstract class BasePackage implements PackageInterface $this->repository = $repository; } + /** + * {@inheritDoc} + */ + public function getRepository() + { + return $this->repository; + } + /** * checks if this package is a platform package *