| 1 | <?php |
||
| 7 | class ArrayAdapter implements Adapter, Countable |
||
| 8 | { |
||
| 9 | /** @var array */ |
||
| 10 | protected $queue; |
||
| 11 | |||
| 12 | 4 | public function __construct() |
|
| 16 | |||
| 17 | /** |
||
| 18 | * {@inheritdoc} |
||
| 19 | */ |
||
| 20 | 3 | public function flush() |
|
| 24 | |||
| 25 | /** |
||
| 26 | * {@inheritdoc} |
||
| 27 | */ |
||
| 28 | public function count() |
||
| 32 | |||
| 33 | /** |
||
| 34 | * {@inheritdoc} |
||
| 35 | */ |
||
| 36 | 4 | public function send(string $payload) |
|
| 44 | |||
| 45 | /** |
||
| 46 | * {@inheritdoc} |
||
| 47 | */ |
||
| 48 | 4 | public function receive() |
|
| 57 | |||
| 58 | /** |
||
| 59 | * {@inheritdoc} |
||
| 60 | */ |
||
| 61 | 1 | public function remove($job) |
|
| 71 | } |
||
| 72 |