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

Scalar   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 5
dl 0
loc 8
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
3
namespace Helix\DB\SQL;
4
5
use Helix\DB;
6
7
/**
8
 * Represents a scalar expression. Produces various transformations.
9
 */
10
class Scalar extends Expression {
11
12
    use ComparisonTrait;
13
    use AggregateTrait;
14
15
    public function __construct (DB $db, string $expression) {
16
        $this->db = $db;
17
        parent::__construct($expression);
18
    }
19
}