Total Complexity | 3 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
10 | * Class ConjunctionCondition. |
||
11 | */ |
||
12 | abstract class ConjunctionCondition implements ConjunctionConditionInterface |
||
13 | { |
||
14 | public function __construct(protected array $expressions) |
||
15 | { |
||
16 | } |
||
17 | |||
18 | public function getExpressions(): array |
||
19 | { |
||
20 | return $this->expressions; |
||
21 | } |
||
22 | |||
23 | public static function fromArrayDefinition(string $operator, array $operands): self |
||
24 | { |
||
25 | return new static($operands); |
||
26 | } |
||
27 | } |
||
28 |