class MinLength extends Constraint
Properties
| $message | ||
| $limit | ||
| $charset |
Methods
|
__construct(mixed $options = null)
Initializes the constraint with options. |
||
| string |
getDefaultOption()
Returns the name of the default option |
|
| array |
getRequiredOptions()
Returns the name of the required options |
Details
at line 29
public
__construct(mixed $options = null)
Initializes the constraint with options.
You should pass an associative array. The keys should be the names of
existing properties in this class. The values should be the value for these
properties.
Alternatively you can override the method getDefaultOption() to return the
name of an existing property. If no associative array is passed, this
property is set instead.
You can force that certain options are set by overriding
getRequiredOptions() to return the names of these options. If any
option is not set here, an exception is thrown.
at line 39
public string
getDefaultOption()
Returns the name of the default option
Override this method to define a default option.
at line 47
public array
getRequiredOptions()
Returns the name of the required options
Override this method if you want to define required options.