Passed
Push — master ( 9d3685...1f10fe )
by y
01:27
created

Expression   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __toString() 0 2 1
A __construct() 0 2 1
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
}