Total Complexity | 5 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Coverage | 81.82% |
Changes | 0 |
1 | <?php |
||
7 | final class DummyAggregateRootId implements AggregateRootId |
||
8 | { |
||
9 | /** |
||
10 | * @var string |
||
11 | */ |
||
12 | private $identifier; |
||
13 | |||
14 | 16 | public function __construct(string $identifier) |
|
15 | { |
||
16 | 16 | $this->identifier = $identifier; |
|
17 | 16 | } |
|
18 | |||
19 | 7 | public function toString(): string |
|
22 | } |
||
23 | |||
24 | public function toUuid(): UuidInterface |
||
|
|||
25 | { |
||
26 | return Uuid::fromString($this->identifier); |
||
27 | } |
||
28 | |||
29 | 13 | public static function generate(): DummyAggregateRootId |
|
30 | { |
||
31 | 13 | return new DummyAggregateRootId(bin2hex(random_bytes(25))); |
|
32 | } |
||
33 | |||
34 | /** |
||
35 | * @return static |
||
36 | */ |
||
37 | 9 | public static function fromString(string $aggregateRootId): AggregateRootId |
|
40 | } |
||
41 | } |
||
42 |
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