| Total Complexity | 4 |
| Total Lines | 17 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | final class FullyQualifiedFactory |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * @param string|string[]|Name|null $name1 |
||
| 25 | * @param string|string[]|Name|null $name2 |
||
| 26 | */ |
||
| 27 | public static function concat($name1, $name2, array $attributes = []): FullyQualified |
||
| 28 | { |
||
| 29 | if (null === $name1 && null === $name2) { |
||
| 30 | throw new InvalidArgumentException('Expected one of the names to not be null'); |
||
| 31 | } |
||
| 32 | |||
| 33 | return FullyQualified::concat($name1, $name2, $attributes); |
||
| 34 | } |
||
| 35 | |||
| 36 | private function __construct() |
||
| 38 | } |
||
| 39 | } |
||
| 40 |