Test Failed
Pull Request — main (#371)
by
unknown
21:45 queued 07:10
created

BaseRangeFunction::getNodeMappingPattern()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 4
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 6
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace MartinGeorgiev\Doctrine\ORM\Query\AST\Functions;
6
7
/**
8
 * @see https://www.postgresql.org/docs/17/rangetypes.html
9
 * @since 3.1
10
 *
11
 * @author Jan Klan <[email protected]>
12
 */
13
abstract class BaseRangeFunction extends BaseVariadicFunction
14
{
15
    protected function getNodeMappingPattern(): array
16
    {
17
        return [
18
            'ArithmeticPrimary',
19
            'ArithmeticPrimary',
20
            'StringPrimary',
21
        ];
22
    }
23
24
    protected function getMinArgumentCount(): int
25
    {
26
        return 2;
27
    }
28
29
    protected function getMaxArgumentCount(): int
30
    {
31
        return 3;
32
    }
33
}
34