| Total Complexity | 4 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 26 | class CollectionsRequest extends AbstractRequest { |
||
| 27 | |||
| 28 | use IntegerPageTrait; |
||
| 29 | use IntegerPerPageTrait; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Collections resource path. |
||
| 33 | * |
||
| 34 | * @var string |
||
| 35 | */ |
||
| 36 | const COLLECTIONS_RESOURCE_PATH = "/v1/collections"; |
||
| 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::deserializeCollectionsResponse($rawResponse); |
||
| 53 | } |
||
| 54 | |||
| 55 | /** |
||
| 56 | * {@inheritDoc} |
||
| 57 | */ |
||
| 58 | public function getResourcePath(): string { |
||
| 60 | } |
||
| 61 | |||
| 62 | /** |
||
| 63 | * {@inheritDoc} |
||
| 64 | */ |
||
| 65 | public function serializeRequest(): array { |
||
| 67 | } |
||
| 68 | } |
||
| 69 |