Total Complexity | 3 |
Total Lines | 17 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
10 | * Condition based on column-value pairs. |
||
11 | */ |
||
12 | class HashCondition implements HashConditionInterface |
||
13 | { |
||
14 | public function __construct(private ?array $hash = []) |
||
15 | { |
||
16 | } |
||
17 | |||
18 | public function getHash(): ?array |
||
19 | { |
||
20 | return $this->hash; |
||
21 | } |
||
22 | |||
23 | public static function fromArrayDefinition(string $operator, array $operands): self |
||
24 | { |
||
25 | return new static($operands); |
||
26 | } |
||
27 | } |
||
28 |