| 1 | <?php |
||
| 7 | class Generic extends BaseRequest |
||
| 8 | { |
||
| 9 | private $endpoint = ''; |
||
| 10 | private $params = ''; |
||
| 11 | protected $payload = []; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * Create constructor. |
||
| 15 | * |
||
| 16 | * @param IEXCloud $api |
||
| 17 | */ |
||
| 18 | public function __construct(IEXCloud $api) |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @return string |
||
| 25 | */ |
||
| 26 | protected function getFullEndpoint(): string |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @return string |
||
| 33 | */ |
||
| 34 | protected function getParamsForUrl() { |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @return bool|void |
||
| 40 | */ |
||
| 41 | protected function validateParams(): void |
||
| 47 | |||
| 48 | /** |
||
| 49 | * Set endpoint |
||
| 50 | * |
||
| 51 | * @param $endpoint |
||
| 52 | * @return Generic |
||
| 53 | */ |
||
| 54 | public function setEndpoint($endpoint) { |
||
| 58 | |||
| 59 | /** |
||
| 60 | * Set params |
||
| 61 | * |
||
| 62 | * @param $params |
||
| 63 | * @return Generic |
||
| 64 | */ |
||
| 65 | public function setParams(array $params = []) { |
||
| 69 | |||
| 70 | /** |
||
| 71 | * Set payload for post request |
||
| 72 | * |
||
| 73 | * @param $payload |
||
| 74 | * @return Generic |
||
| 75 | */ |
||
| 76 | public function setPayload(array $payload = []) { |
||
| 80 | } |
||
| 81 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..