浏览代码

Moved setter before getter and added @inheritDoc

deguif 12 年之前
父节点
当前提交
3c21dc1499
共有 1 个文件被更改,包括 11 次插入5 次删除
  1. 11 5
      src/Composer/Package/BasePackage.php

+ 11 - 5
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
      *