public function ValidatorBuilderInterface::setApiVersion in Plug 7
Sets the API version that the returned validator should support.
Parameters
int $apiVersion The required API version:
Return value
ValidatorBuilderInterface The builder object
See also
Validation::API_VERSION_2_4
Validation::API_VERSION_2_5
Validation::API_VERSION_2_5_BC
1 method overrides ValidatorBuilderInterface::setApiVersion()
- ValidatorBuilder::setApiVersion in lib/
Symfony/ validator/ Symfony/ Component/ Validator/ ValidatorBuilder.php - Sets the API version that the returned validator should support.
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ ValidatorBuilderInterface.php, line 185
Class
- ValidatorBuilderInterface
- A configurable builder for ValidatorInterface objects.
Namespace
Symfony\Component\ValidatorCode
public function setApiVersion($apiVersion);