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 = []) |
|
28 | |||
29 | 7 | protected function addCustomAdapters(array $types) |
|
36 | |||
37 | |||
38 | 7 | protected function setDefaultAdapters() |
|
45 | |||
46 | /** |
||
47 | * @param array $types |
||
48 | * @throws \Gbowo\Exception\UnknownAdapterException |
||
49 | */ |
||
50 | 4 | protected function validateCustomAdapters(array $types) |
|
64 | |||
65 | 3 | protected function throwException(string $message) |
|
69 | |||
70 | /** |
||
71 | * @param string $adapterIdentifier |
||
72 | * @return \Gbowo\Contract\Adapter\AdapterInterface |
||
73 | * @throws \Gbowo\Exception\UnknownAdapterException |
||
74 | */ |
||
75 | 5 | public function createAdapter(string $adapterIdentifier) |
|
85 | } |
||
86 |
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..