Total Complexity | 7 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
26 | abstract class MetaParameters extends BaseParameters |
||
27 | { |
||
28 | /** |
||
29 | * @var array<string, mixed> |
||
30 | */ |
||
31 | private array $meta = []; |
||
32 | |||
33 | /** |
||
34 | * @return mixed |
||
35 | */ |
||
36 | public function getMeta(string $key) |
||
37 | { |
||
38 | return $this->meta[$key]; |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * @param mixed $value |
||
43 | * |
||
44 | * @return $this |
||
45 | */ |
||
46 | public function addMeta(string $key, $value) |
||
47 | { |
||
48 | $this->meta[$key] = $value; |
||
49 | |||
50 | return $this; |
||
51 | } |
||
52 | |||
53 | /** |
||
54 | * @param mixed $queries |
||
55 | */ |
||
56 | protected function buildMeta(&$queries): void |
||
64 | } |
||
65 | } |
||
66 | } |
||
69 |