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