| 1 | <?php |
||
| 16 | final class Queue extends AbstractQueue implements QueueInterface |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * Construct queue. |
||
| 20 | * |
||
| 21 | * @param \MongoDB\Collection|string $collectionOrUrl A MongoCollection instance or the mongo connection url. |
||
| 22 | * @param string $db the mongo db name |
||
| 23 | * @param string $collection the collection name to use for the queue |
||
| 24 | * |
||
| 25 | * @throws \InvalidArgumentException $collectionOrUrl, $db or $collection was not a string |
||
| 26 | */ |
||
| 27 | public function __construct($collectionOrUrl, string $db = null, string $collection = null) |
||
| 46 | } |
||
| 47 |