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

Daterange   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 6
dl 0
loc 13
ccs 4
cts 4
cp 1
rs 10
c 1
b 0
f 1
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getFunctionName() 0 3 1
A getNodeMappingPattern() 0 6 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace MartinGeorgiev\Doctrine\ORM\Query\AST\Functions;
6
7
/**
8
 * Implementation of PostgreSQL DATERANGE().
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 Daterange extends BaseRangeFunction
16
{
17 1
    protected function getFunctionName(): string
18
    {
19 1
        return 'daterange';
20 1
    }
21 1
22
    protected function getNodeMappingPattern(): array
23
    {
24
        return [
25
            'StringPrimary',
26
            'StringPrimary',
27
            'StringPrimary',
28
        ];
29
    }
30
}
31