You are here

public function ValidatorBuilderInterface::setApiVersion in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/ValidatorBuilderInterface.php \Symfony\Component\Validator\ValidatorBuilderInterface::setApiVersion()

Sets the API version that the returned validator should support.

Parameters

int $apiVersion The required API version:

Return value

ValidatorBuilderInterface The builder object

Deprecated

since version 2.7, to be removed in 3.0.

See also

Validation::API_VERSION_2_5

Validation::API_VERSION_2_5_BC

1 method overrides ValidatorBuilderInterface::setApiVersion()
ValidatorBuilder::setApiVersion in vendor/symfony/validator/ValidatorBuilder.php

File

vendor/symfony/validator/ValidatorBuilderInterface.php, line 185

Class

ValidatorBuilderInterface
A configurable builder for ValidatorInterface objects.

Namespace

Symfony\Component\Validator

Code

public function setApiVersion($apiVersion);