Total Complexity | 3 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
22 | abstract class AbstractQuery implements Query |
||
23 | { |
||
24 | use ImmutabilityBehaviour, ScalarPayloadBehaviour { |
||
25 | ScalarPayloadBehaviour::__call insteadof ImmutabilityBehaviour; |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * AbstractQuery constructor. |
||
30 | * |
||
31 | * @param mixed[] $parameters |
||
32 | */ |
||
33 | final protected function __construct(array $parameters) |
||
38 | } |
||
39 | |||
40 | /** |
||
41 | * {@inheritdoc} |
||
42 | */ |
||
43 | public function getQueryType(): string |
||
44 | { |
||
45 | return \get_called_class(); |
||
46 | } |
||
47 | |||
48 | /** |
||
49 | * {@inheritdoc} |
||
50 | * |
||
51 | * @return string[] |
||
52 | */ |
||
53 | final protected function getAllowedInterfaces(): array |
||
56 | } |
||
57 | } |
||
58 |