| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 39 | 1 | public function getData( |
|
| 40 | \DateTimeInterface $startDate, |
||
| 41 | \DateTimeInterface $endDate, |
||
| 42 | array $filters = [] |
||
| 43 | ): string { |
||
| 44 | /** @var CalendarEvent $event */ |
||
| 45 | 1 | $event = $this->dispatcher->dispatch( |
|
| 46 | 1 | CalendarEvent::SET_DATA, |
|
| 47 | 1 | new CalendarEvent($startDate, $endDate, $filters) |
|
| 48 | ); |
||
| 49 | |||
| 50 | 1 | return $this->serializer->serialize($event->getEvents()); |
|
| 51 | } |
||
| 53 |