Total Complexity | 9 |
Total Lines | 54 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
14 | final class DefaultTransportCostCollection extends BaseListCollection implements TransportCostCollection |
||
15 | { |
||
16 | /** |
||
17 | * @param list<\Inspirum\Balikobot\Model\TransportCost\TransportCost> $items |
||
|
|||
18 | */ |
||
19 | 5 | public function __construct( |
|
20 | private readonly ?string $carrier, |
||
21 | array $items = [], |
||
22 | ) { |
||
23 | 5 | parent::__construct($items); |
|
24 | } |
||
25 | |||
26 | 1 | public function getCarrier(): string |
|
27 | { |
||
28 | 1 | return $this->carrier ?? throw new RuntimeException('Collection is empty'); |
|
29 | } |
||
30 | |||
31 | /** @inheritDoc */ |
||
32 | 1 | public function getCosts(): array |
|
35 | } |
||
36 | |||
37 | /** |
||
38 | * @return list<string> |
||
39 | */ |
||
40 | 1 | public function getBatchIds(): array |
|
43 | } |
||
44 | |||
45 | 2 | public function getTotalCost(): float |
|
59 | } |
||
60 | |||
61 | 3 | public function getCurrencyCode(): string |
|
70 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths