1 | <?php |
||
11 | final class Server |
||
12 | { |
||
13 | /** |
||
14 | * @var Headers |
||
15 | */ |
||
16 | private $headers; |
||
17 | |||
18 | /** |
||
19 | * @var Request |
||
20 | */ |
||
21 | private $request; |
||
22 | |||
23 | /** |
||
24 | * @var Response |
||
25 | */ |
||
26 | private $response; |
||
27 | |||
28 | /** |
||
29 | * Server constructor. |
||
30 | */ |
||
31 | 4 | public function __construct() |
|
37 | |||
38 | /** |
||
39 | * Whitelist your UI |
||
40 | * |
||
41 | * @param $origin |
||
42 | * @return void |
||
43 | */ |
||
44 | 1 | public function whitelist(string $origin) |
|
48 | |||
49 | /** |
||
50 | * Is Domain whitelisted |
||
51 | * |
||
52 | * @param string $origin |
||
53 | * @return bool |
||
54 | */ |
||
55 | 1 | public function isWhitelisted(string $origin) |
|
59 | |||
60 | /** |
||
61 | * Chack is API KEY valid |
||
62 | * |
||
63 | * @param string $apy_key |
||
64 | * @return mixed |
||
65 | */ |
||
66 | 1 | public function isValidApiKey(string $api_key) |
|
70 | |||
71 | /** |
||
72 | * Set API KEY |
||
73 | * |
||
74 | * @param string $api_key |
||
75 | * @return void |
||
76 | */ |
||
77 | 1 | public function apikey(string $api_key) |
|
81 | |||
82 | /** |
||
83 | * Run the server |
||
84 | * |
||
85 | * @return void |
||
86 | */ |
||
87 | public function run() |
||
105 | } |
||
106 |
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..