Total Complexity | 3 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
10 | final class MaxElementNotFoundException extends LogicException implements ExceptionInterface |
||
11 | { |
||
12 | |||
13 | private $dataList; |
||
14 | |||
15 | private $elements; |
||
16 | |||
17 | /** |
||
18 | * @param array $dataList |
||
19 | * @param ScalarValueInterface[] $elements |
||
20 | * @param Throwable|null $previous |
||
21 | */ |
||
22 | 6 | public function __construct(array $dataList, array $elements, Throwable $previous = null) |
|
23 | { |
||
24 | 6 | $this->dataList = $dataList; |
|
25 | 6 | $this->elements = $elements; |
|
26 | 6 | parent::__construct("Max element not found", 0, $previous); |
|
27 | 6 | } |
|
28 | |||
29 | 1 | public function getDataList(): array |
|
32 | } |
||
33 | |||
34 | /** |
||
35 | * @return ScalarValueInterface[] |
||
36 | */ |
||
37 | 1 | public function getElements(): array |
|
42 |