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 | /** |
||
25 | * @param EventInterface $event |
||
26 | * |
||
27 | * @return Event |
||
28 | */ |
||
29 | public function createFromDomainEvent(EventInterface $event): Event |
||
33 | |||
34 | /** |
||
35 | * @param int $offsetEventId |
||
36 | * @param int $limit |
||
37 | * |
||
38 | * @return Event[]|null |
||
39 | */ |
||
40 | public function findRecentEvents(int $offsetEventId, int $limit = 0): ?array |
||
54 | } |
||
55 |