1 | <?php |
||
20 | class ActionController extends Controller |
||
21 | { |
||
22 | /** |
||
23 | * Get available automatic actions. |
||
24 | * |
||
25 | * @return array |
||
26 | */ |
||
27 | public function getAvailableActions() |
||
31 | |||
32 | /** |
||
33 | * Get the list of events and description that can be used from the user interface. |
||
34 | * |
||
35 | * @return array |
||
36 | */ |
||
37 | public function getAvailableActionEvents() |
||
41 | |||
42 | /** |
||
43 | * Get list of compatible events for a given action. |
||
44 | * |
||
45 | * @param string $name |
||
46 | * |
||
47 | * @return array |
||
48 | */ |
||
49 | public function getCompatibleActionEvents($action_name) |
||
53 | |||
54 | /** |
||
55 | * Remove an action. |
||
56 | * |
||
57 | * @param int $action_id |
||
58 | * |
||
59 | * @return bool |
||
60 | */ |
||
61 | public function removeAction($action_id) |
||
67 | |||
68 | /** |
||
69 | * Return actions and parameters for a given project. |
||
70 | * |
||
71 | * @param int $project_id |
||
72 | * |
||
73 | * @return array |
||
74 | */ |
||
75 | public function getActions($project_id) |
||
81 | |||
82 | /** |
||
83 | * Create an action. |
||
84 | * |
||
85 | * @param int $project_id |
||
86 | * @param string $event_name |
||
87 | * @param string $action_name |
||
88 | * @param array $params |
||
89 | * |
||
90 | * @return bool|int |
||
91 | */ |
||
92 | public function createAction($project_id, $event_name, $action_name, array $params) |
||
140 | } |
||
141 |
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.