Total Complexity | 8 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Coverage | 88.24% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | class ArrayQueue extends AbstractCollection implements Queue, IndexIterable |
||
14 | { |
||
15 | use RemoveTraverseTrait; |
||
16 | |||
17 | 1 | public function offer($element): bool |
|
20 | } |
||
21 | |||
22 | 4 | public function poll() |
|
30 | } |
||
31 | |||
32 | 3 | public function peek() |
|
39 | } |
||
40 | |||
41 | 1 | public function stream(): Stream |
|
44 | } |
||
45 | |||
46 | public function parallelStream($workersPool = null): Stream |
||
47 | { |
||
48 | return new ParallelStream($this, $workersPool); |
||
49 | } |
||
50 | |||
51 | 5 | public function getIndexIterator(): Iterator |
|
54 | } |
||
55 | } |
||
56 |