Completed
Push — master ( df9952...f86661 )
by Hannes
04:17 queued 02:11
created

Comparator   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 17
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
declare(strict_types = 1);
4
5
namespace hanneskod\yaysondb\Expression;
6
7
/**
8
 * A comparator compares one one operand with another
9
 */
10
abstract class Comparator implements ExpressionInterface
11
{
12
    /**
13
     * @var mixed Operand to compare
14
     */
15
    protected $operand;
16
17
    /**
18
     * Specify operand to compare
19
     *
20
     * @param mixed $operand
21
     */
22
    public function __construct($operand)
23
    {
24
        $this->operand = $operand;
25
    }
26
}
27