Test Failed
Push — main ( d83a09...5b4f97 )
by Martin
39:36 queued 24:20
created

Tsrange::getNodeMappingPattern()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 0
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace MartinGeorgiev\Doctrine\ORM\Query\AST\Functions;
6
7
/**
8
 * Implementation of PostgreSQL TSRANGE().
9
 *
10
 * @see https://www.postgresql.org/docs/17/rangetypes.html
11
 * @since 2.9
12
 *
13
 * @author Martin Georgiev <[email protected]>
14
 */
15
class Tsrange extends BaseVariadicFunction
16
{
17 1
    protected function getFunctionName(): string
18
    {
19 1
        return 'tsrange';
20 1
    }
21 1
22
    /**
23
     * @return array<string>
24
     */
25
    protected function getNodeMappingPattern(): array
26
    {
27
        return ['StringPrimary'];
28
    }
29
30
    protected function getMinArgumentCount(): int
31
    {
32
        return 2;
33
    }
34
35
    protected function getMaxArgumentCount(): int
36
    {
37
        return 3;
38
    }
39
}
40