Total Complexity | 4 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
26 | class CuratedPhotosRequest extends AbstractRequest { |
||
27 | |||
28 | use IntegerPageTrait; |
||
29 | use IntegerPerPageTrait; |
||
30 | |||
31 | /** |
||
32 | * Curated photo resource path. |
||
33 | * |
||
34 | * @var string |
||
35 | */ |
||
36 | const CURATED_PHOTO_RESOURCE_PATH = "/v1/curated"; |
||
37 | |||
38 | /** |
||
39 | * Constructor. |
||
40 | */ |
||
41 | public function __construct() { |
||
42 | parent::__construct(); |
||
43 | |||
44 | $this->setPage(1); |
||
45 | $this->setPerPage(self::PER_PAGE_DEFAULT); |
||
46 | } |
||
47 | |||
48 | /** |
||
49 | * {@inheritdoc} |
||
50 | */ |
||
51 | public function deserializeResponse(string $rawResponse): AbstractResponse { |
||
52 | return ResponseDeserializer::deserializePhotosResponse($rawResponse); |
||
53 | } |
||
54 | |||
55 | /** |
||
56 | * {@inheritdoc} |
||
57 | */ |
||
58 | public function getResourcePath(): string { |
||
59 | return self::CURATED_PHOTO_RESOURCE_PATH; |
||
60 | } |
||
61 | |||
62 | /** |
||
63 | * {@inheritdoc} |
||
64 | */ |
||
65 | public function serializeRequest(): array { |
||
67 | } |
||
68 | } |
||
69 |