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