src/Backend/Modules/MediaLibraryImporter/Domain/MediaItemImport/Method.php 1 location
|
@@ 22-31 (lines=10) @@
|
19 |
|
/** |
20 |
|
* @param string $method |
21 |
|
*/ |
22 |
|
private function __construct(string $method) |
23 |
|
{ |
24 |
|
if (!in_array($method, self::POSSIBLE_VALUES, true)) { |
25 |
|
throw new \InvalidArgumentException( |
26 |
|
'Invalid value for possible MediaItemImport method. Possible values; ' . implode(',', self::POSSIBLE_VALUES) |
27 |
|
); |
28 |
|
} |
29 |
|
|
30 |
|
$this->method = $method; |
31 |
|
} |
32 |
|
|
33 |
|
/** |
34 |
|
* @param string $method |
src/Backend/Modules/MediaLibraryImporter/Domain/MediaItemImport/Status.php 1 location
|
@@ 32-41 (lines=10) @@
|
29 |
|
/** |
30 |
|
* @param string $status |
31 |
|
*/ |
32 |
|
private function __construct(string $status) |
33 |
|
{ |
34 |
|
if (!in_array($status, self::POSSIBLE_VALUES, true)) { |
35 |
|
throw new \InvalidArgumentException( |
36 |
|
'Invalid value for the MediaItemImport status. Possible values; ' . implode(',', self::POSSIBLE_VALUES) |
37 |
|
); |
38 |
|
} |
39 |
|
|
40 |
|
$this->status = $status; |
41 |
|
} |
42 |
|
|
43 |
|
/** |
44 |
|
* @param string $status |