| Total Complexity | 3 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 17 | class ArrayCheck extends CollectionCheck implements FluentCheck |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * ArrayCheck constructor. |
||
| 21 | * |
||
| 22 | * @template T of array |
||
| 23 | * @param array $collection |
||
| 24 | */ |
||
| 25 | 41 | public function __construct(array $collection) |
|
| 26 | { |
||
| 27 | 41 | parent::__construct($collection); |
|
| 28 | 41 | } |
|
| 29 | |||
| 30 | /** |
||
| 31 | * @param string|int $expected |
||
| 32 | * |
||
| 33 | * @return ArrayCheck |
||
| 34 | */ |
||
| 35 | 2 | public function hasElementAt($expected): self |
|
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @param string|int $expected |
||
| 43 | * |
||
| 44 | * @return ArrayCheck |
||
| 45 | */ |
||
| 46 | 2 | public function hasNoElementAt($expected): self |
|
| 50 | } |
||
| 51 | } |
||
| 52 |