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