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