1 | <?php |
||
10 | trait EventManagerAwareTrait |
||
11 | { |
||
12 | /** |
||
13 | * Currently displayed event. |
||
14 | * @var array $event City/Object/Event |
||
15 | */ |
||
16 | private $currentEvent; |
||
17 | |||
18 | /** |
||
19 | * @var EventManager $eventManager |
||
20 | */ |
||
21 | private $eventManager; |
||
22 | |||
23 | // ========================================================================== |
||
24 | // FUNCTIONS |
||
25 | // ========================================================================== |
||
26 | |||
27 | /** |
||
28 | * Formatted event list |
||
29 | * Return the entries for the current page |
||
30 | * @return \Generator|void |
||
31 | */ |
||
32 | public function eventsList() |
||
39 | |||
40 | /** |
||
41 | * Formatted event archive list |
||
42 | * Returns the entries for the current page. |
||
43 | * @return \Generator|void |
||
44 | */ |
||
45 | public function eventArchiveList() |
||
52 | |||
53 | /** |
||
54 | * Current event. |
||
55 | * @return array The properties of the current event. |
||
56 | */ |
||
57 | public function currentEvent() |
||
73 | |||
74 | /** |
||
75 | * @return mixed |
||
76 | */ |
||
77 | public function featEvents() |
||
91 | |||
92 | /** |
||
93 | * Next event in list. |
||
94 | * @return array The next event properties. |
||
95 | */ |
||
96 | public function nextEvent() |
||
106 | |||
107 | /** |
||
108 | * Next event in list. |
||
109 | * @return array The next event properties. |
||
110 | */ |
||
111 | public function prevEvent() |
||
121 | |||
122 | /** |
||
123 | * Amount of events (total) |
||
124 | * @return integer How many events? |
||
125 | */ |
||
126 | public function numEvent() |
||
130 | |||
131 | /** |
||
132 | * @return float |
||
133 | */ |
||
134 | public function numEventPages() |
||
138 | |||
139 | /** |
||
140 | * @return boolean |
||
141 | */ |
||
142 | public function eventHasPager() |
||
146 | |||
147 | /** |
||
148 | * @return \Generator |
||
149 | */ |
||
150 | public function eventCategoryList() |
||
157 | |||
158 | /** |
||
159 | * @param EventInterface $event Charcoal\Cms\EventInterface. |
||
160 | * @return CategoryInterface |
||
161 | */ |
||
162 | protected function eventCategory(EventInterface $event) |
||
168 | |||
169 | // ========================================================================== |
||
170 | // FORMATTER |
||
171 | // ========================================================================== |
||
172 | |||
173 | /** |
||
174 | * @param EventInterface $event Charcoal\Cms\EventInterface. |
||
175 | * @return string |
||
176 | */ |
||
177 | protected function getEventStartDateFormat(EventInterface $event) |
||
183 | |||
184 | /** |
||
185 | * @param EventInterface $event Charcoal\Cms\EventInterface. |
||
186 | * @return string |
||
187 | */ |
||
188 | protected function getEventEndDateFormat(EventInterface $event) |
||
194 | |||
195 | /** |
||
196 | * @param EventInterface $event Charcoal\Cms\EventInterface. |
||
197 | * @return string |
||
198 | */ |
||
199 | protected function getEventDateFormat(EventInterface $event) |
||
206 | |||
207 | /** |
||
208 | * @param EventInterface $event Charcoal\Cms\EventInterface. |
||
209 | * @return string |
||
210 | */ |
||
211 | protected function getEventTimeFormat(EventInterface $event) |
||
226 | |||
227 | /** |
||
228 | * Formatting expected in templates |
||
229 | * @param EventInterface $event Charcoal\Cms\EventInterface. |
||
230 | * @return array The needed event properties. |
||
231 | */ |
||
232 | protected function eventFormatShort(EventInterface $event) |
||
244 | |||
245 | /** |
||
246 | * Formatting expected in templates |
||
247 | * @param EventInterface $event Charcoal\Cms\EventInterface. |
||
248 | * @return array The needed event properties. |
||
249 | */ |
||
250 | protected function eventFormatNav(EventInterface $event) |
||
261 | |||
262 | /** |
||
263 | * @param EventInterface $event The current event. |
||
264 | * @return array The needed properties. |
||
265 | */ |
||
266 | protected function eventFormatFull(EventInterface $event) |
||
295 | |||
296 | /** |
||
297 | * @param CategoryInterface $category The category item. |
||
298 | * @return array The formatted category item. |
||
299 | */ |
||
300 | protected function eventFormatCategory(CategoryInterface $category) |
||
307 | |||
308 | // ========================================================================== |
||
309 | // DEPENDENCIES |
||
310 | // ========================================================================== |
||
311 | |||
312 | /** |
||
313 | * @return EventManager |
||
314 | * @throws ContainerException When dependency is missing. |
||
315 | */ |
||
316 | protected function eventManager() |
||
328 | |||
329 | /** |
||
330 | * @param EventManager $eventManager The event Manager class. |
||
331 | * @return self |
||
332 | */ |
||
333 | protected function setEventManager(EventManager $eventManager) |
||
339 | |||
340 | /** |
||
341 | * dateHelperAwareTrait dependency |
||
342 | * @return mixed |
||
343 | */ |
||
344 | abstract protected function dateHelper(); |
||
345 | } |
||
346 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.