1 | <?php |
||
19 | class ActionParameterModel extends Model |
||
20 | { |
||
21 | /** |
||
22 | * SQL table name. |
||
23 | * |
||
24 | * @var string |
||
25 | */ |
||
26 | const TABLE = 'action_has_params'; |
||
27 | |||
28 | /** |
||
29 | * Get all action params. |
||
30 | * |
||
31 | * @return array |
||
32 | */ |
||
33 | public function getAll() |
||
39 | |||
40 | /** |
||
41 | * Get all params for a list of actions. |
||
42 | * |
||
43 | * @param array $action_ids |
||
44 | * |
||
45 | * @return array |
||
46 | */ |
||
47 | public function getAllByActions(array $action_ids) |
||
53 | |||
54 | /** |
||
55 | * Build params dictionary. |
||
56 | * |
||
57 | * @param array $params |
||
58 | * |
||
59 | * @return array |
||
60 | */ |
||
61 | private function toDictionary(array $params) |
||
71 | |||
72 | /** |
||
73 | * Get all action params for a given action. |
||
74 | * |
||
75 | * @param int $action_id |
||
76 | * |
||
77 | * @return array |
||
78 | */ |
||
79 | public function getAllByAction($action_id) |
||
83 | |||
84 | /** |
||
85 | * Insert new parameters for an action. |
||
86 | * |
||
87 | * @param int $action_id |
||
88 | * @param array $values |
||
89 | * |
||
90 | * @return bool |
||
91 | */ |
||
92 | public function create($action_id, array $values) |
||
108 | |||
109 | /** |
||
110 | * Duplicate action parameters. |
||
111 | * |
||
112 | * @param int $project_id |
||
113 | * @param int $action_id |
||
114 | * @param array $params |
||
115 | * |
||
116 | * @return bool |
||
117 | */ |
||
118 | public function duplicateParameters($project_id, $action_id, array $params) |
||
142 | |||
143 | /** |
||
144 | * Resolve action parameter values according to another project. |
||
145 | * |
||
146 | * @param int $project_id |
||
147 | * @param string $name |
||
148 | * @param string $value |
||
149 | * |
||
150 | * @return mixed |
||
151 | */ |
||
152 | private function resolveParameter($project_id, $name, $value) |
||
177 | } |
||
178 |
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.