1 | <?php |
||
23 | class CalendarHelper extends Base |
||
24 | { |
||
25 | /** |
||
26 | * Get formatted calendar task due events. |
||
27 | * |
||
28 | * @param QueryBuilder $queryBuilder |
||
29 | * @param string $start |
||
30 | * @param string $end |
||
31 | * |
||
32 | * @return array |
||
33 | */ |
||
34 | public function getTaskDateDueEvents(QueryBuilder $queryBuilder, $start, $end) |
||
44 | |||
45 | /** |
||
46 | * Get formatted calendar task events. |
||
47 | * |
||
48 | * @param QueryBuilder $queryBuilder |
||
49 | * @param string $start |
||
50 | * @param string $end |
||
51 | * |
||
52 | * @return array |
||
53 | */ |
||
54 | public function getTaskEvents(QueryBuilder $queryBuilder, $start, $end) |
||
70 | |||
71 | /** |
||
72 | * Get formatted calendar subtask time tracking events. |
||
73 | * |
||
74 | * @param int $user_id |
||
75 | * @param string $start |
||
76 | * @param string $end |
||
77 | * |
||
78 | * @return array |
||
79 | */ |
||
80 | public function getSubtaskTimeTrackingEvents($user_id, $start, $end) |
||
95 | |||
96 | /** |
||
97 | * Build SQL condition for a given time range. |
||
98 | * |
||
99 | * @param string $start_time Start timestamp |
||
100 | * @param string $end_time End timestamp |
||
101 | * @param string $start_column Start column name |
||
102 | * @param string $end_column End column name |
||
103 | * |
||
104 | * @return string |
||
105 | */ |
||
106 | public function getCalendarCondition($start_time, $end_time, $start_column, $end_column) |
||
119 | } |
||
120 |
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.