| 1 | <?php |
||
| 10 | class EventRepository extends EntityRepository |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var SerializerInterface |
||
| 14 | */ |
||
| 15 | private $serializer; |
||
| 16 | |||
| 17 | public function __construct(ManagerRegistry $managerRegistry, PaginatorInterface $paginator, string $class, SerializerInterface $serializer) |
||
| 23 | |||
| 24 | public function saveEvent(EventInterface $event) |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @param int $offsetEventId |
||
| 32 | * @param int $limit |
||
| 33 | * @return Event[]|null |
||
| 34 | */ |
||
| 35 | public function findRecentEvents(int $offsetEventId, int $limit = 0) : ?array |
||
| 49 | } |
||
| 50 |