| 1 | <?php |
||
| 11 | abstract class AbstractQueue implements \Bernard\Queue |
||
| 12 | { |
||
| 13 | protected $closed; |
||
| 14 | protected $name; |
||
| 15 | protected $options = []; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @param string $name |
||
| 19 | */ |
||
| 20 | public function __construct($name) |
||
| 24 | |||
| 25 | /** |
||
| 26 | * {@inheritdoc} |
||
| 27 | */ |
||
| 28 | public function close() |
||
| 32 | |||
| 33 | /** |
||
| 34 | * By Default this is not implemented. For Memory queues it does not make sense. |
||
| 35 | * |
||
| 36 | * {@inheritdoc} |
||
| 37 | */ |
||
| 38 | public function acknowledge(Envelope $envelope) |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @throws InvalidOperationException |
||
| 45 | */ |
||
| 46 | protected function errorIfClosed() |
||
| 52 | |||
| 53 | /** |
||
| 54 | * {@inheritdoc} |
||
| 55 | */ |
||
| 56 | public function getOptions() |
||
| 60 | |||
| 61 | /** |
||
| 62 | * {@inheritdoc} |
||
| 63 | */ |
||
| 64 | public function setOptions(array $options) |
||
| 68 | |||
| 69 | /** |
||
| 70 | * {@inheritdoc} |
||
| 71 | */ |
||
| 72 | public function __toString() |
||
| 76 | } |
||
| 77 |