You are here

public function Constraint::getRequiredOptions in Plug 7

Returns the name of the required options.

Override this method if you want to define required options.

@api

Return value

array

See also

__construct()

1 call to Constraint::getRequiredOptions()
Constraint::__construct in lib/Symfony/validator/Symfony/Component/Validator/Constraint.php
Initializes the constraint with options.
7 methods override Constraint::getRequiredOptions()
All::getRequiredOptions in lib/Symfony/validator/Symfony/Component/Validator/Constraints/All.php
Returns the name of the required options.
CardScheme::getRequiredOptions in lib/Symfony/validator/Symfony/Component/Validator/Constraints/CardScheme.php
Returns the name of the required options.
Collection::getRequiredOptions in lib/Symfony/validator/Symfony/Component/Validator/Constraints/Collection.php
Returns the name of the required options.
ConstraintC::getRequiredOptions in lib/Symfony/validator/Symfony/Component/Validator/Tests/Fixtures/ConstraintC.php
Returns the name of the required options.
Expression::getRequiredOptions in lib/Symfony/validator/Symfony/Component/Validator/Constraints/Expression.php
Returns the name of the required options.

... See full list

File

lib/Symfony/validator/Symfony/Component/Validator/Constraint.php, line 266

Class

Constraint
Contains the properties of a constraint definition.

Namespace

Symfony\Component\Validator

Code

public function getRequiredOptions() {
  return array();
}