1 | <?php |
||
10 | class InMemoryQueue extends AbstractQueue |
||
11 | { |
||
12 | protected $queue; |
||
13 | |||
14 | /** |
||
15 | * {@inheritdoc} |
||
16 | */ |
||
17 | 36 | public function __construct($name) |
|
24 | |||
25 | /** |
||
26 | * {@inheritdoc} |
||
27 | */ |
||
28 | 17 | public function count() |
|
34 | |||
35 | /** |
||
36 | * {@inheritdoc} |
||
37 | */ |
||
38 | 17 | public function enqueue(Envelope $envelope) |
|
44 | |||
45 | /** |
||
46 | * {@inheritdoc} |
||
47 | */ |
||
48 | 15 | public function dequeue() |
|
60 | |||
61 | /** |
||
62 | * {@inheritdoc} |
||
63 | */ |
||
64 | 4 | public function peek($index = 0, $limit = 20) |
|
82 | } |
||
83 |