1 | <?php |
||
11 | class GbowoFactory |
||
12 | { |
||
13 | |||
14 | const PAYSTACK = "paystack"; |
||
15 | |||
16 | const AMPLIFY_PAY = "amplifypay"; |
||
17 | |||
18 | /** |
||
19 | * @var AdapterInterface[] |
||
20 | */ |
||
21 | protected $availableAdapters = []; |
||
22 | |||
23 | 7 | public function __construct(array $types = []) |
|
32 | |||
33 | 7 | protected function setDefaultAdapters() |
|
40 | |||
41 | /** |
||
42 | * @param array $types |
||
43 | * @throws \Gbowo\Exception\UnknownAdapterException |
||
44 | */ |
||
45 | 4 | protected function validateCustomAdapters(array $types) |
|
59 | |||
60 | 3 | protected function throwException(string $message) |
|
64 | |||
65 | /** |
||
66 | * @param string $adapterIdentifier |
||
67 | * @return \Gbowo\Contract\Adapter\AdapterInterface |
||
68 | * @throws \Gbowo\Exception\UnknownAdapterException |
||
69 | */ |
||
70 | 5 | public function createAdapter(string $adapterIdentifier) |
|
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..