Total Complexity | 6 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
24 | class RowToJson extends BaseVariadicFunction |
||
25 | { |
||
26 | use BooleanValidationTrait; |
||
|
|||
27 | |||
28 | 3 | protected function getNodeMappingPattern(): array |
|
29 | { |
||
30 | 3 | return ['StringPrimary']; |
|
31 | } |
||
32 | |||
33 | 3 | protected function customizeFunction(): void |
|
34 | { |
||
35 | 3 | $this->setFunctionPrototype('row_to_json(%s)'); |
|
36 | } |
||
37 | |||
38 | 3 | protected function validateArguments(Node ...$arguments): void |
|
48 | } |
||
49 | } |
||
50 | } |
||
51 |