Total Complexity | 3 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Changes | 3 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
7 | final class QueryContext extends AbstractContext |
||
8 | { |
||
9 | private const LOG_CONTEXT = 'logContext'; |
||
10 | private const SQL = 'sql'; |
||
11 | private const PARAMS = 'params'; |
||
12 | |||
13 | public function __construct( |
||
14 | private string $method, |
||
15 | private string $logContext, |
||
16 | private string $sql, |
||
17 | private array $params, |
||
18 | ) { |
||
19 | parent::__construct($this->method); |
||
20 | } |
||
21 | |||
22 | public function getType(): string |
||
23 | { |
||
24 | return 'query'; |
||
25 | } |
||
26 | |||
27 | public function __toArray(): array |
||
33 | ]; |
||
34 | } |
||
35 | } |
||
36 |