src/Model/LogoType/LogoType.php 1 location
|
@@ 75-77 (lines=3) @@
|
72 |
|
*/ |
73 |
|
public static function createFromArray(array $data) |
74 |
|
{ |
75 |
|
if ($data['status'] === 'INVALID_PARAMETER' && array_key_exists('message', $data['data'])) { |
76 |
|
throw new ValidationException($data['data']['message']); |
77 |
|
} |
78 |
|
$logoType = new self(); |
79 |
|
$logoType->content = $data['content'] ?? null; |
80 |
|
$logoType->fileType = $data['file_type'] ?? null; |
src/Model/Report/Report.php 1 location
|
@@ 179-181 (lines=3) @@
|
176 |
|
*/ |
177 |
|
public static function createFromArray(array $data) |
178 |
|
{ |
179 |
|
if ($data['status'] === 'INVALID_PARAMETER' && array_key_exists('message', $data['data'])) { |
180 |
|
throw new ValidationException($data['data']['message']); |
181 |
|
} |
182 |
|
$report = new self(); |
183 |
|
$report->filename = $data['filename'] ?? null; |
184 |
|
$report->type = $data['type'] ?? null; |