1 | <?php |
||
8 | class PagesController extends AppController |
||
9 | { |
||
10 | |||
11 | /** |
||
12 | * Components. |
||
13 | * |
||
14 | * @var array |
||
15 | */ |
||
16 | public $components = [ |
||
17 | 'RequestHandler' |
||
18 | ]; |
||
19 | |||
20 | /** |
||
21 | * Beforefilter. |
||
22 | * |
||
23 | * @param Event $event The beforeFilter event that was fired. |
||
24 | * |
||
25 | * @return void |
||
26 | */ |
||
27 | public function beforeFilter(Event $event) |
||
33 | |||
34 | /** |
||
35 | * Home page. |
||
36 | * |
||
37 | * @return void |
||
38 | */ |
||
39 | public function home() |
||
81 | |||
82 | /** |
||
83 | * The user accept the use of cookies. |
||
84 | * |
||
85 | * @throws \Cake\Network\Exception\NotFoundException When it's not an AJAX request. |
||
86 | * |
||
87 | * @return void |
||
88 | */ |
||
89 | public function acceptCookie() |
||
107 | |||
108 | /** |
||
109 | * Redirect to the referer. |
||
110 | * |
||
111 | * @return void |
||
112 | */ |
||
113 | public function lang() |
||
117 | |||
118 | /** |
||
119 | * Display the Terms page. |
||
120 | * |
||
121 | * @return void |
||
122 | */ |
||
123 | public function terms() |
||
126 | } |
||
127 |
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.