Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
19 | private function __construct(string $method) |
||
20 | { |
||
21 | if (!in_array($method, self::POSSIBLE_VALUES, true)) { |
||
22 | throw new \InvalidArgumentException( |
||
23 | 'Invalid value for possible MediaItemImport method. Possible values; ' . implode(',', self::POSSIBLE_VALUES) |
||
24 | ); |
||
25 | } |
||
26 | |||
27 | $this->method = $method; |
||
28 | } |
||
29 | |||
80 |