Passed
Push — master ( 9d3685...1f10fe )
by y
01:27
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
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Helix\DB;
4
5
class Expression implements ExpressionInterface {
6
7
    /**
8
     * @var string
9
     */
10
    protected $string;
11
12
    /**
13
     * @param string $string
14
     */
15
    public function __construct (string $string) {
16
        $this->string = $string;
17
    }
18
19
    /**
20
     * @return string
21
     */
22
    public function __toString () {
23
        return $this->string;
24
    }
25
}