1 | <?php |
||
14 | abstract class View extends \Utils\View { |
||
15 | |||
16 | protected $view = '', $status = STATUS_CODE_200, $title = ''; |
||
17 | |||
18 | /** |
||
19 | * Get the page title |
||
20 | */ |
||
21 | |||
22 | private function getTitle() : string { |
||
26 | |||
27 | /** |
||
28 | * Output the page contents |
||
29 | */ |
||
30 | |||
31 | protected function _display(Template\Block $layout) { |
||
51 | |||
52 | /** |
||
53 | * Output the page dynamic data as json |
||
54 | */ |
||
55 | |||
56 | protected function _navigate(array $layout) { |
||
76 | |||
77 | /** |
||
78 | * Constructor |
||
79 | */ |
||
80 | |||
81 | public function __construct(string $title) { |
||
85 | } |
||
86 | } |
||
87 |
Since your code implements the magic setter
_set
, this function will be called for any write access on an undefined variable. You can add the@property
annotation to your class or interface to document the existence of this variable.Since the property has write access only, you can use the @property-write 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.