1 | <?php |
||
17 | abstract class Base extends \Jitamin\Foundation\Base |
||
18 | { |
||
19 | /** |
||
20 | * Method called for each request. |
||
21 | * |
||
22 | * @abstract |
||
23 | */ |
||
24 | abstract public function initialize(); |
||
25 | |||
26 | /** |
||
27 | * Override default CSP rules. |
||
28 | * |
||
29 | * @param array $rules |
||
30 | */ |
||
31 | public function setContentSecurityPolicy(array $rules) |
||
35 | |||
36 | /** |
||
37 | * Returns all classes that needs to be stored in the DI container. |
||
38 | * |
||
39 | * @return array |
||
40 | */ |
||
41 | public function getClasses() |
||
45 | |||
46 | /** |
||
47 | * Returns all helper classes that needs to be stored in the DI container. |
||
48 | * |
||
49 | * @return array |
||
50 | */ |
||
51 | public function getHelpers() |
||
55 | |||
56 | /** |
||
57 | * Listen on internal events. |
||
58 | * |
||
59 | * @param string $event |
||
60 | * @param callable $callback |
||
61 | */ |
||
62 | public function on($event, $callback) |
||
70 | |||
71 | /** |
||
72 | * Get plugin name. |
||
73 | * |
||
74 | * This method should be overridden by your Plugin class |
||
75 | * |
||
76 | * @return string |
||
77 | */ |
||
78 | public function getPluginName() |
||
82 | |||
83 | /** |
||
84 | * Get plugin description. |
||
85 | * |
||
86 | * This method should be overridden by your Plugin class |
||
87 | * |
||
88 | * @return string |
||
89 | */ |
||
90 | public function getPluginDescription() |
||
94 | |||
95 | /** |
||
96 | * Get plugin author. |
||
97 | * |
||
98 | * This method should be overridden by your Plugin class |
||
99 | * |
||
100 | * @return string |
||
101 | */ |
||
102 | public function getPluginAuthor() |
||
106 | |||
107 | /** |
||
108 | * Get plugin version. |
||
109 | * |
||
110 | * This method should be overridden by your Plugin class |
||
111 | * |
||
112 | * @return string |
||
113 | */ |
||
114 | public function getPluginVersion() |
||
118 | |||
119 | /** |
||
120 | * Get plugin homepage. |
||
121 | * |
||
122 | * This method should be overridden by your Plugin class |
||
123 | * |
||
124 | * @return string |
||
125 | */ |
||
126 | public function getPluginHomepage() |
||
130 | } |
||
131 |
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.