| 1 | <?php |
||
| 17 | class GitHubGoal extends DefaultGoal |
||
| 18 | { |
||
| 19 | public function setName($value) |
||
| 26 | |||
| 27 | public function getName() |
||
| 31 | |||
| 32 | public function getPackage() |
||
| 36 | |||
| 37 | public function getVendor() |
||
| 41 | |||
| 42 | public function actionCreate() |
||
| 45 | |||
| 46 | /** |
||
| 47 | * Clone repo from github. |
||
| 48 | * TODO to work need to redo HiDev to run this action without normal initilization. |
||
| 49 | * @param string $repo full name vendor/package |
||
| 50 | * @return int exit code |
||
| 51 | */ |
||
| 52 | public function actionClone($repo) |
||
| 56 | } |
||
| 57 |
Since your code implements the magic getter
_get, this function will be called for any read access on an undefined variable. You can add the@propertyannotation to your class or interface to document the existence of this variable.If the property has read access only, you can use the @property-read annotation instead.
Of course, you may also just have mistyped another name, in which case you should fix the error.
See also the PhpDoc documentation for @property.