Passed
Push — master ( 9b561d...08d227 )
by y
01:25
created

Expression   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 4
dl 0
loc 19
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 2 1
A __toString() 0 2 1
1
<?php
2
3
namespace Helix\DB\SQL;
4
5
/**
6
 * A literal expression, exempt from being quoted.
7
 */
8
class Expression implements ExpressionInterface {
9
10
    /**
11
     * @var string
12
     */
13
    protected $expression;
14
15
    /**
16
     * @param string $expression
17
     */
18
    public function __construct (string $expression) {
19
        $this->expression = $expression;
20
    }
21
22
    /**
23
     * @return string
24
     */
25
    public function __toString () {
26
        return $this->expression;
27
    }
28
}