function ExpressionSyntax::__construct
Parameters
array<string,mixed>|null $options:
non-empty-string|null $service The service used to validate the constraint instead of the default one:
string[]|null $allowedVariables Restrict the available variables in the expression to these values (defaults to null that allows any variable):
string[]|null $groups:
Overrides Constraint::__construct
File
-
vendor/
symfony/ validator/ Constraints/ ExpressionSyntax.php, line 40
Class
- ExpressionSyntax
- Validates that a value is valid as an ExpressionLanguage expression.
Namespace
Symfony\Component\Validator\ConstraintsCode
public function __construct(?array $options = null, ?string $message = null, ?string $service = null, ?array $allowedVariables = null, ?array $groups = null, mixed $payload = null) {
parent::__construct($options, $groups, $payload);
$this->message = $message ?? $this->message;
$this->service = $service ?? $this->service;
$this->allowedVariables = $allowedVariables ?? $this->allowedVariables;
}