Completed
Push — develop ( ece4b2...d9d999 )
by Martin
04:03 queued 01:09
created

Overlaps::customiseFunction()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 6
rs 9.4285
cc 1
eloc 4
nc 1
nop 0
1
<?php
2
3
namespace MartinGeorgiev\Doctrine\ORM\Query\AST\Functions;
4
5
/**
6
 * Implementation of PostgreSql check if left side overlaps with right side (using &&)
7
 * @see https://www.postgresql.org/docs/9.6/static/functions-array.html
8
 *
9
 * @since 0.10
10
 * @author Martin Georgiev <[email protected]>
11
 */
12
class Overlaps extends AbstractFunction
13
{
14
    protected function customiseFunction()
15
    {
16
        $this->setFunctionPrototype('(%s && %s)');
17
        $this->addLiteralMapping('StringPrimary');
18
        $this->addLiteralMapping('StringPrimary');
19
    }
20
}
21