Symfony2 API
Class

Symfony\Component\Validator\Constraints\Type

class Type extends Constraint

Properties

$message
$type

Methods

string getDefaultOption()

Returns the name of the default option

array getRequiredOptions()

Returns the name of the required options

Details

at line 31
public string getDefaultOption()

Returns the name of the default option

Override this method to define a default option.

Return Value

string

at line 39
public array getRequiredOptions()

Returns the name of the required options

Override this method if you want to define required options.

Return Value

array