1 | <?php |
||
24 | class SearchPhotosRequest extends AbstractRequest { |
||
25 | |||
26 | use IntegerPageTrait; |
||
27 | use IntegerPerPageTrait; |
||
28 | use StringQueryTrait; |
||
29 | |||
30 | /** |
||
31 | * Search photos resource path. |
||
32 | * |
||
33 | * @var string |
||
34 | */ |
||
35 | const SEARCH_PHOTOS_RESOURCE_PATH = "/v1/search"; |
||
36 | |||
37 | /** |
||
38 | * Locale. |
||
39 | * |
||
40 | * @var string|null |
||
41 | */ |
||
42 | private $locale; |
||
43 | |||
44 | /** |
||
45 | * Constructor. |
||
46 | */ |
||
47 | public function __construct() { |
||
52 | |||
53 | /** |
||
54 | * Get the locale. |
||
55 | * |
||
56 | * @return string|null Returns the locale. |
||
57 | */ |
||
58 | public function getLocale(): ?string { |
||
61 | |||
62 | /** |
||
63 | * {@inheritDoc} |
||
64 | */ |
||
65 | public function getResourcePath(): string { |
||
68 | |||
69 | /** |
||
70 | * Set the locale. |
||
71 | * |
||
72 | * @param string|null $locale The locale. |
||
73 | * @return SearchPhotosRequest Returns this search photos request. |
||
74 | */ |
||
75 | public function setLocale(?string $locale): SearchPhotosRequest { |
||
79 | } |
||
80 |