1 | <?php |
||
7 | class GroupsController extends AppController |
||
8 | { |
||
9 | |||
10 | /** |
||
11 | * BeforeFilter handle. |
||
12 | * |
||
13 | * @param Event $event The beforeFilter event that was fired. |
||
14 | * |
||
15 | * @return void |
||
16 | */ |
||
17 | public function beforeFilter(Event $event) |
||
23 | |||
24 | /** |
||
25 | * Display members by a group. |
||
26 | * |
||
27 | * @return void |
||
28 | */ |
||
29 | public function view() |
||
50 | } |
||
51 |
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.