Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
32 | 3 | public function postImage(ImageUploadRequestInterface $imageUploadRequest): Image |
|
33 | { |
||
34 | 3 | $url = sprintf(self::POST_IMAGE, $this->organizationUuid); |
|
35 | 3 | $data = json_encode($imageUploadRequest->getUploadRequest()); |
|
36 | |||
37 | 3 | $response = $this->client->post($url, $data); |
|
38 | |||
39 | 3 | return $this->imageBuilder->buildFromJson($this->client->getJson($response)); |
|
40 | } |
||
41 | } |
||
42 |