Total Complexity | 5 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
13 | class Database implements ServiceInterface |
||
14 | { |
||
15 | /** |
||
16 | * @var DBUtils |
||
17 | */ |
||
18 | private $dbUtils; |
||
19 | |||
20 | /** |
||
21 | * Used for auto wiring |
||
22 | */ |
||
23 | 53 | public function __construct(DBUtils $dbUtils) |
|
26 | 53 | } |
|
27 | |||
28 | /** |
||
29 | * Returns service's name |
||
30 | */ |
||
31 | public function getName(): string |
||
32 | { |
||
33 | 51 | return 'db'; |
|
34 | } |
||
35 | 51 | ||
36 | /** |
||
37 | * @throws NeuralyzerException |
||
38 | * |
||
39 | * @return array |
||
40 | */ |
||
41 | public function query(string $sql): ?array |
||
54 | } |
||
55 | 3 | } |
|
57 |
This function has been deprecated. The supplier of the function has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.