| Total Complexity | 6 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | final class InCondition implements InConditionInterface |
||
| 16 | { |
||
| 17 | public function __construct( |
||
| 18 | private array|string|Iterator $column, |
||
| 19 | private string $operator, |
||
| 20 | private int|iterable|Iterator|QueryInterface $values |
||
| 21 | ) { |
||
| 22 | } |
||
| 23 | |||
| 24 | public function getColumn(): array|string|Iterator |
||
| 25 | { |
||
| 26 | return $this->column; |
||
| 27 | } |
||
| 28 | |||
| 29 | public function getOperator(): string |
||
| 32 | } |
||
| 33 | |||
| 34 | public function getValues(): int|iterable|Iterator|QueryInterface |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @throws InvalidArgumentException |
||
| 41 | * |
||
| 42 | * @psalm-suppress MixedArgument |
||
| 43 | */ |
||
| 44 | public static function fromArrayDefinition(string $operator, array $operands): self |
||
| 53 |