1 | <?php |
||
14 | class MemoryUniqueEventQueue implements EventQueueInterface |
||
15 | { |
||
16 | /** |
||
17 | * @var EventInterface[] |
||
18 | */ |
||
19 | private $events = []; |
||
20 | |||
21 | /** |
||
22 | * Push event to queue. |
||
23 | * |
||
24 | * @param EventInterface $event |
||
25 | * |
||
26 | * @return bool |
||
27 | */ |
||
28 | 1 | public function push(EventInterface $event) |
|
40 | |||
41 | /** |
||
42 | * Pop event from queue. Return NULL if queue is empty. |
||
43 | * |
||
44 | * @return EventInterface|null |
||
45 | */ |
||
46 | public function pop() |
||
50 | } |
||
51 |