Total Complexity | 3 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | class StringCollection |
||
10 | { |
||
11 | /** @var string[] */ |
||
12 | private array $array; |
||
13 | |||
14 | private function __construct(string ...$array) |
||
17 | } |
||
18 | |||
19 | /** |
||
20 | * @param array $array |
||
21 | * @return static |
||
22 | * @throws TypeError |
||
23 | */ |
||
24 | public static function fromArray(array $array): self |
||
25 | { |
||
26 | return new static(...$array); |
||
27 | } |
||
28 | |||
29 | public function toArray(): array |
||
32 | } |
||
33 | } |