| 1 | <?php |
||
| 8 | class Search extends BaseGet |
||
| 9 | { |
||
| 10 | const ENDPOINT = 'search/{term}'; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | protected $term; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Create constructor. |
||
| 19 | * |
||
| 20 | * @param IEXCloud $api |
||
| 21 | */ |
||
| 22 | 2 | public function __construct(IEXCloud $api) |
|
| 26 | |||
| 27 | /** |
||
| 28 | * @param string $term |
||
| 29 | *ß |
||
| 30 | * |
||
| 31 | * @return Search |
||
| 32 | */ |
||
| 33 | 1 | public function setTerm(string $term): self |
|
| 39 | |||
| 40 | /** |
||
| 41 | * @return string |
||
| 42 | */ |
||
| 43 | 1 | protected function getFullEndpoint(): string |
|
| 47 | } |
||
| 48 |