public createInExpression ( Sulu\Component\Rest\ListBuilder\FieldDescriptorInterface $fieldDescriptor, array $values ) | ||
$fieldDescriptor | Sulu\Component\Rest\ListBuilder\FieldDescriptorInterface | |
$values | array |
public function createInExpression(FieldDescriptorInterface $fieldDescriptor, array $values)
{
if (!$fieldDescriptor instanceof DoctrineFieldDescriptorInterface) {
throw new InvalidExpressionArgumentException('in', 'fieldDescriptor');
}
return new DoctrineInExpression($fieldDescriptor, $values);
}