| Total Complexity | 4 |
| Total Lines | 42 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | class GetPhotoRequest extends AbstractRequest implements SubstituableRequestInterface { |
||
| 26 | |||
| 27 | use IntegerIdTrait { |
||
| 28 | setId as public; |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Get photo resource path. |
||
| 33 | * |
||
| 34 | * @var string |
||
| 35 | */ |
||
| 36 | const GET_PHOTO_RESOURCE_PATH = "/v1/photos/:id"; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * {@inheritdoc} |
||
| 40 | */ |
||
| 41 | public function deserializeResponse(string $rawResponse): AbstractResponse { |
||
| 42 | return ResponseDeserializer::deserializePhotoResponse($rawResponse); |
||
| 43 | } |
||
| 44 | |||
| 45 | /** |
||
| 46 | * {@inheritdoc} |
||
| 47 | */ |
||
| 48 | public function getResourcePath(): string { |
||
| 49 | return self::GET_PHOTO_RESOURCE_PATH; |
||
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * {@inheritdoc} |
||
| 54 | */ |
||
| 55 | public function getSubstituables(): array { |
||
| 59 | ]; |
||
| 60 | } |
||
| 61 | |||
| 62 | /** |
||
| 63 | * {@inheritdoc} |
||
| 64 | */ |
||
| 65 | public function serializeRequest(): array { |
||
| 69 |