1 | <?php |
||
14 | abstract class Status extends \Utils\View { |
||
15 | |||
16 | /** |
||
17 | * Display a status screen |
||
18 | */ |
||
19 | |||
20 | private static function display(string $view, string $title, int $status) { |
||
36 | |||
37 | /** |
||
38 | * Display the 404 error screen |
||
39 | */ |
||
40 | |||
41 | public static function displayError404() { |
||
45 | |||
46 | /** |
||
47 | * Display the maintenance screen |
||
48 | */ |
||
49 | |||
50 | public static function displayMaintenance() { |
||
54 | |||
55 | /** |
||
56 | * Display the update screen |
||
57 | */ |
||
58 | |||
59 | public static function displayUpdate() { |
||
63 | } |
||
64 | } |
||
65 |
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.