Completed
Push — v1-with-php71 ( 899cbe )
by Martin
07:55
created

Greatest::feedParserWithNodes()   A

Complexity

Conditions 3
Paths 3

Size

Total Lines 15

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 15
rs 9.7666
c 0
b 0
f 0
cc 3
nc 3
nop 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace MartinGeorgiev\Doctrine\ORM\Query\AST\Functions;
6
7
/**
8
 * Implementation of PostgreSql GREATEST()
9
 * @see https://www.postgresql.org/docs/9.4/static/functions-conditional.html#FUNCTIONS-GREATEST-LEAST
10
 *
11
 * @since 0.7
12
 * @author Martin Georgiev <[email protected]>
13
 */
14
class Greatest extends BaseComparisonFunction
15
{
16
    protected function customiseFunction(): void
17
    {
18
        $this->setFunctionPrototype('greatest(%s)');
19
    }
20
}
21