1 | <?php |
||
7 | final class ImageUrlUpload implements ImageUploadRequestInterface |
||
8 | { |
||
9 | const ALLOWED_FILE_TYPES = [ |
||
10 | 'gif' => 'GIF', |
||
11 | 'jpeg' => 'JPEG', |
||
12 | 'jpg' => 'JPEG', |
||
13 | 'png' => 'PNG', |
||
14 | 'bmp' => 'BMP', |
||
15 | ]; |
||
16 | |||
17 | private $imageUrl; |
||
18 | private $imageFormat; |
||
19 | |||
20 | 1 | public function __construct(string $imageUrl) |
|
27 | |||
28 | public function getPostBodyData(): string |
||
37 | } |
||
38 |