1 | <?php |
||
19 | class TaskStatusModel extends Model |
||
20 | { |
||
21 | /** |
||
22 | * Return true if the task is closed. |
||
23 | * |
||
24 | * @param int $task_id Task id |
||
25 | * |
||
26 | * @return bool |
||
27 | */ |
||
28 | public function isClosed($task_id) |
||
32 | |||
33 | /** |
||
34 | * Return true if the task is open. |
||
35 | * |
||
36 | * @param int $task_id Task id |
||
37 | * |
||
38 | * @return bool |
||
39 | */ |
||
40 | public function isOpen($task_id) |
||
44 | |||
45 | /** |
||
46 | * Mark a task closed. |
||
47 | * |
||
48 | * @param int $task_id Task id |
||
49 | * |
||
50 | * @return bool |
||
51 | */ |
||
52 | public function close($task_id) |
||
58 | |||
59 | /** |
||
60 | * Mark a task open. |
||
61 | * |
||
62 | * @param int $task_id Task id |
||
63 | * |
||
64 | * @return bool |
||
65 | */ |
||
66 | public function open($task_id) |
||
70 | |||
71 | /** |
||
72 | * Close multiple tasks. |
||
73 | * |
||
74 | * @param array $task_ids |
||
75 | */ |
||
76 | public function closeMultipleTasks(array $task_ids) |
||
82 | |||
83 | /** |
||
84 | * Close all tasks within a column/swimlane. |
||
85 | * |
||
86 | * @param int $swimlane_id |
||
87 | * @param int $column_id |
||
88 | */ |
||
89 | public function closeTasksBySwimlaneAndColumn($swimlane_id, $column_id) |
||
100 | |||
101 | /** |
||
102 | * Common method to change the status of task. |
||
103 | * |
||
104 | * @param int $task_id Task id |
||
105 | * @param int $status Task status |
||
106 | * @param int $date_completed Timestamp |
||
107 | * @param string $event_name Event name |
||
108 | * |
||
109 | * @return bool |
||
110 | */ |
||
111 | private function changeStatus($task_id, $status, $date_completed, $event_name) |
||
132 | |||
133 | /** |
||
134 | * Check the status of a task. |
||
135 | * |
||
136 | * @param int $task_id Task id |
||
137 | * @param int $status Task status |
||
138 | * |
||
139 | * @return bool |
||
140 | */ |
||
141 | private function checkStatus($task_id, $status) |
||
149 | } |
||
150 |
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.