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

Expression::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 2
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 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
}