| 1 | <?php |
||
| 9 | class Queue extends BaseEventEmitter implements QueueInterface |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var SplQueue |
||
| 13 | */ |
||
| 14 | public $queue; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * |
||
| 18 | */ |
||
| 19 | public function __construct() |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @override |
||
| 26 | * @inheritDoc |
||
| 27 | */ |
||
| 28 | public function isEmpty() |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @override |
||
| 35 | * @inheritDoc |
||
| 36 | */ |
||
| 37 | public function enqueue(CommandInterface $command) |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @override |
||
| 46 | * @inheritDoc |
||
| 47 | */ |
||
| 48 | public function dequeue() |
||
| 52 | |||
| 53 | /** |
||
| 54 | * Unshift command. |
||
| 55 | * |
||
| 56 | * @return CommandInterface |
||
| 57 | */ |
||
| 58 | public function unshift(CommandInterface $command) |
||
| 63 | } |
||
| 64 |