| Total Complexity | 5 |
| Total Lines | 56 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | class Ids implements Query |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * @var array |
||
| 21 | */ |
||
| 22 | private $values; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var array |
||
| 26 | */ |
||
| 27 | private $types; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @param array $values |
||
| 31 | * @param string[] ...$types |
||
| 32 | */ |
||
| 33 | 3 | public function __construct(array $values, string ...$types) |
|
| 34 | { |
||
| 35 | 3 | $this->values = $values; |
|
| 36 | 3 | $this->types = $types; |
|
| 37 | 3 | } |
|
| 38 | |||
| 39 | /** |
||
| 40 | * @param string[] ...$types |
||
| 41 | * |
||
| 42 | * @return self |
||
| 43 | */ |
||
| 44 | 1 | public function type(string ...$types): self |
|
| 45 | { |
||
| 46 | 1 | $this->types = $types; |
|
| 47 | |||
| 48 | 1 | return $this; |
|
| 49 | } |
||
| 50 | |||
| 51 | /** |
||
| 52 | * {@inheritdoc} |
||
| 53 | */ |
||
| 54 | 1 | public function name(): string |
|
| 55 | { |
||
| 56 | 1 | return 'ids'; |
|
| 57 | } |
||
| 58 | |||
| 59 | /** |
||
| 60 | * {@inheritdoc} |
||
| 61 | */ |
||
| 62 | 2 | public function compile(): array |
|
| 73 | } |
||
| 74 | } |
||
| 75 |