| 1 | <?php |
||
| 9 | class BaseGet |
||
| 10 | { |
||
| 11 | const ENDPOINT = ''; |
||
| 12 | |||
| 13 | protected $method = 'GET'; |
||
| 14 | |||
| 15 | protected $api; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Create constructor. |
||
| 19 | * |
||
| 20 | * @param IEXCloud $api |
||
| 21 | */ |
||
| 22 | 20 | public function __construct(IEXCloud $api) |
|
| 26 | |||
| 27 | /** |
||
| 28 | * @return Collection |
||
| 29 | */ |
||
| 30 | 13 | public function send(): Collection |
|
| 40 | |||
| 41 | /** |
||
| 42 | * @return string |
||
| 43 | */ |
||
| 44 | 6 | protected function getFullEndpoint(): string |
|
| 48 | |||
| 49 | /** |
||
| 50 | * @return bool |
||
| 51 | */ |
||
| 52 | 7 | protected function validateParams() |
|
| 56 | } |
||
| 57 |