Failed Conditions
Push — master ( 5be1f5...5a2c4b )
by Bas
09:45
created

ConstantExpression::compile()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 1
nop 1
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
1
<?php
2
3
namespace LaravelFreelancerNL\FluentAQL\Expressions;
4
5
use LaravelFreelancerNL\FluentAQL\QueryBuilder;
6
7
/**
8
 * AQL literal expression.
9
 */
10
class ConstantExpression extends LiteralExpression implements ExpressionInterface
11
{
12
    /**
13
     * Compile expression output.
14
     *
15
     * @param  QueryBuilder|null  $queryBuilder
16
     * @return string
17
     */
18 1
    public function compile(QueryBuilder $queryBuilder = null): string
19
    {
20 1
        return strtoupper($this->expression);
21
    }
22
}
23