| 1 | <?php |
||
| 4 | class DeployPlanDispatcher extends Dispatcher { |
||
| 5 | |||
| 6 | /** |
||
| 7 | * Render configuration form. |
||
| 8 | * |
||
| 9 | * @param \SS_HTTPRequest $request |
||
| 10 | * |
||
| 11 | * @return \HTMLText|\SS_HTTPResponse |
||
| 12 | */ |
||
| 13 | public function index(\SS_HTTPRequest $request) { |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Generate the data structure used by the frontend component. |
||
| 21 | * |
||
| 22 | * @param string $name of the component |
||
| 23 | * |
||
| 24 | * @return array |
||
| 25 | */ |
||
| 26 | public function getModel($name) { |
||
| 29 | } |
||
| 30 |
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.