| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 23 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 30 | public function __invoke(  | 
            ||
| 31 | ResponseInterface $response,  | 
            ||
| 32 | ElementInterface $element,  | 
            ||
| 33 | ObjectsFieldInterface $field,  | 
            ||
| 34 | string $id = null  | 
            ||
| 35 |     ): ElementInterface { | 
            ||
| 36 | /** @var Element $element */  | 
            ||
| 37 | |||
| 38 | $data = Json::decodeIfJson(  | 
            ||
| 39 | $response->getBody()->getContents()  | 
            ||
| 40 | );  | 
            ||
| 41 | |||
| 42 | $errors = call_user_func_array(  | 
            ||
| 43 | new InterpretUpsertResponseErrors(),  | 
            ||
| 44 | [  | 
            ||
| 45 | $data  | 
            ||
| 46 | ]  | 
            ||
| 47 | );  | 
            ||
| 48 | |||
| 49 | $element->addErrors($errors);  | 
            ||
| 50 | |||
| 51 | return $element;  | 
            ||
| 52 | }  | 
            ||
| 53 | }  | 
            ||
| 54 |