Passed
Push — master ( b11800...947896 )
by Wilmer
20:19 queued 17:23
created

fromArrayDefinition()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Yiisoft\Db\QueryBuilder\Condition;
6
7
use Yiisoft\Db\QueryBuilder\Condition\Interface\ConjunctionConditionInterface;
8
9
/**
10
 * Class ConjunctionCondition.
11
 */
12
abstract class AbstractConjunctionCondition implements ConjunctionConditionInterface
13
{
14
    final 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