for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*******************************************************************************
* This file is part of the GraphQL Bundle package.
*
* (c) YnloUltratech <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
******************************************************************************/
namespace Ynlo\GraphQLBundle\Model\Filter;
use Ynlo\GraphQLBundle\Annotation as GraphQL;
use Ynlo\GraphQLBundle\Type\StringComparisonOperatorType;
/**
* @GraphQL\InputObjectType(description="Create string comparison expression to filter values by contents")
*/
class StringComparisonExpression
{
* @var string|null
* @GraphQL\Field(type="StringComparisonOperator", description="Comparison operator, default value: `CONTAINS`")
private $op = StringComparisonOperatorType::CONTAINS;
* @GraphQL\Field(type="string", description="String value to search")
private $value;
* @var string[]
* @GraphQL\Field(type="[string!]", description="Multiple strings to search (using OR), retrieve records matching ONE OF this values.")
private $values = [];
* @return null|string
public function getOp(): ?string
return $this->op;
}
* @param null|string $op
public function setOp(?string $op): void
$this->op = $op;
public function getValue(): ?string
return $this->value;
* @param null|string $value
public function setValue(?string $value): void
$this->value = $value;
* @return string[]
public function getValues(): array
return $this->values;
* @param string[] $values
public function setValues(array $values): void
$this->values = $values;