1 | <?php |
||
25 | class SqlQueryAdapter implements QueryInterface |
||
26 | { |
||
27 | /** |
||
28 | * @var PDO |
||
29 | */ |
||
30 | private $driverAdapter; |
||
31 | |||
32 | /** |
||
33 | * @var array |
||
34 | */ |
||
35 | private $identifierList = []; |
||
36 | |||
37 | /** |
||
38 | * QueryInterface constructor. |
||
39 | * |
||
40 | * @param DriverInterface $driverAdapter |
||
41 | */ |
||
42 | public function __construct(DriverInterface $driverAdapter) |
||
47 | |||
48 | /** |
||
49 | * Collects all the valid statements. |
||
50 | */ |
||
51 | private function init() : void |
||
59 | |||
60 | /** |
||
61 | * Returns the Data Driver instance. |
||
62 | * |
||
63 | * @return DriverInterface |
||
64 | */ |
||
65 | public function getDriver() : DriverInterface |
||
69 | |||
70 | /** |
||
71 | * Returns all the query identifiers assigned to the query adapter. |
||
72 | * |
||
73 | * @return array |
||
74 | */ |
||
75 | public function getQueryIdentifierList() : array |
||
79 | |||
80 | /** |
||
81 | * Fetches data buy executing a query identified by ID. |
||
82 | * |
||
83 | * @param string $queryIdentifier |
||
84 | * @param array $parameters |
||
85 | * @throws InvalidArgumentException |
||
86 | * @throws RuntimeException |
||
87 | * @return null|array |
||
88 | */ |
||
89 | public function fetchData(string $queryIdentifier, array $parameters = []) : ? array |
||
132 | |||
133 | /** |
||
134 | * Returns the PDO type of the value. |
||
135 | * |
||
136 | * @param mixed $value |
||
137 | * @return int |
||
138 | */ |
||
139 | private function getValueType($value) : int |
||
153 | } |
||
154 |
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..