Condition::getValues()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
declare(strict_types=1);
3
4
namespace BenTools\Where\Expression;
5
6
final class Condition extends Expression
7
{
8
    /**
9
     * @var string
10
     */
11
    private $condition;
12
13
    /**
14
     * @var array
15
     */
16
    private $values;
17
18
    /**
19
     * Condition constructor.
20
     * @param string $condition
21
     * @param array  $values
22
     */
23
    protected function __construct(string $condition, array $values = [])
24
    {
25
        $this->condition = $condition;
26
        $this->values = $values;
27
    }
28
29
    /**
30
     * @inheritDoc
31
     */
32
    public function __toString(): string
33
    {
34
        return $this->condition;
35
    }
36
37
    /**
38
     * @inheritDoc
39
     */
40
    public function getValues(): array
41
    {
42
        return $this->values;
43
    }
44
}
45