Passed
Pull Request — 2.1 (#71)
by Vincent
14:21 queued 08:17
created

AtomicFilter   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 7
c 1
b 0
f 0
dl 0
loc 16
ccs 4
cts 4
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
namespace Bdf\Prime\Query\Closure\Filter;
4
5
use Bdf\Prime\Query\Closure\Value\ComparisonValueInterface;
6
7
final class AtomicFilter
8
{
9
    public string $property;
10
    public string $operator;
11
    public ComparisonValueInterface $value;
12
13
    /**
14
     * @param string $property
15
     * @param string $operator
16
     * @param ComparisonValueInterface $value
17
     */
18 12
    public function __construct(string $property, string $operator, ComparisonValueInterface $value)
19
    {
20 12
        $this->property = $property;
21 12
        $this->operator = $operator;
22 12
        $this->value = $value;
23
    }
24
}
25