| Total Complexity | 7 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | class ResourceUuid implements ResourceUuidInterface |
||
| 20 | { |
||
| 21 | private UuidInterface $uuid; |
||
| 22 | |||
| 23 | private function __construct(UuidInterface $uuid) |
||
| 24 | { |
||
| 25 | $this->uuid = $uuid; |
||
| 26 | } |
||
| 27 | |||
| 28 | public function __toString(): string |
||
| 29 | { |
||
| 30 | return self::fromUuid($this->uuid); |
||
| 31 | } |
||
| 32 | |||
| 33 | public static function fromUuid(object $uuid): string |
||
| 34 | { |
||
| 35 | if (!$uuid instanceof UuidInterface) { |
||
| 36 | throw new \InvalidArgumentException('UuidInterface type excepted.'); |
||
| 37 | } |
||
| 38 | |||
| 39 | return $uuid->toString(); |
||
| 40 | } |
||
| 41 | |||
| 42 | public static function generate(): self |
||
| 48 | } |
||
| 49 | } |
||
| 50 | |||
| 51 | public static function fromString(string $uuid): self |
||
| 54 | } |
||
| 55 | } |
||
| 56 |
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