| 1 | <?php |
||
| 9 | class Query extends BaseGet |
||
| 10 | { |
||
| 11 | const ENDPOINT = 'time-series/{id}/{key}/{subKey}'; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @var string |
||
| 15 | */ |
||
| 16 | protected $id = ''; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var string |
||
| 20 | */ |
||
| 21 | protected $key = ''; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var string |
||
| 25 | */ |
||
| 26 | protected $subKey = ''; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Create constructor. |
||
| 30 | * |
||
| 31 | * @param IEXCloud $api |
||
| 32 | */ |
||
| 33 | 4 | public function __construct(IEXCloud $api) |
|
| 37 | |||
| 38 | /** |
||
| 39 | * @param string $id |
||
| 40 | * |
||
| 41 | * @return Query |
||
| 42 | */ |
||
| 43 | 2 | public function setId(string $id): self |
|
| 49 | |||
| 50 | /** |
||
| 51 | * @param string $key |
||
| 52 | * |
||
| 53 | * @return Query |
||
| 54 | */ |
||
| 55 | 1 | public function setKey(string $key): self |
|
| 61 | |||
| 62 | /** |
||
| 63 | * @param string $subKey |
||
| 64 | * |
||
| 65 | * @return Query |
||
| 66 | */ |
||
| 67 | 1 | public function setSubKey(string $subKey): self |
|
| 73 | |||
| 74 | /** |
||
| 75 | * @return string |
||
| 76 | */ |
||
| 77 | 1 | protected function getFullEndpoint(): string |
|
| 85 | |||
| 86 | /** |
||
| 87 | * @return bool|void |
||
| 88 | */ |
||
| 89 | 3 | protected function validateParams() |
|
| 101 | } |
||
| 102 |