| Total Complexity | 6 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | final class ExistsCondition implements ExistConditionInterface |
||
| 15 | { |
||
| 16 | public function __construct(private string $operator, private QueryInterface $query) |
||
| 17 | { |
||
| 18 | } |
||
| 19 | |||
| 20 | public function getOperator(): string |
||
| 21 | { |
||
| 22 | return $this->operator; |
||
| 23 | } |
||
| 24 | |||
| 25 | public function getQuery(): QueryInterface |
||
| 26 | { |
||
| 27 | return $this->query; |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @throws InvalidArgumentException |
||
| 32 | * |
||
| 33 | * @psalm-suppress MixedArgument |
||
| 34 | */ |
||
| 35 | public static function fromArrayDefinition(string $operator, array $operands): self |
||
| 42 | } |
||
| 43 | } |
||
| 44 |