| Total Complexity | 4 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 7 | class Factory |
||
| 8 | { |
||
| 9 | /** @var array<string> */ |
||
| 10 | private array $specialRepositories = []; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @param array<string> $specialRepositories |
||
| 14 | */ |
||
| 15 | 8 | public function __construct(array $specialRepositories) |
|
| 16 | { |
||
| 17 | 8 | $this->specialRepositories = $specialRepositories; |
|
| 18 | } |
||
| 19 | |||
| 20 | 4 | public function build(string $namespace, array $event): Event |
|
| 29 | } |
||
| 30 | |||
| 31 | 4 | private function isValidType(string $type): bool |
|
| 36 |