1 | <?php |
||
19 | class ProjectHeaderHelper extends Base |
||
20 | { |
||
21 | /** |
||
22 | * Get current query. |
||
23 | * |
||
24 | * @param array $project |
||
25 | * |
||
26 | * @return string |
||
27 | */ |
||
28 | public function getSearchQuery(array $project) |
||
35 | |||
36 | /** |
||
37 | * Render project header (views switcher and search box). |
||
38 | * |
||
39 | * @param array $project |
||
40 | * @param bool $boardView |
||
41 | * |
||
42 | * @return string |
||
43 | */ |
||
44 | public function render(array $project, $boardView = false) |
||
52 | |||
53 | /** |
||
54 | * Get project description. |
||
55 | * |
||
56 | * @param array &$project |
||
57 | * |
||
58 | * @return string |
||
59 | */ |
||
60 | public function getDescription(array &$project) |
||
75 | } |
||
76 |
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@property
annotation 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.