You are here

public function Expression::validatedBy in Plug 7

Returns the name of the class that validates this constraint.

By default, this is the fully qualified name of the constraint class suffixed with "Validator". You can override this method to change that behaviour.

@api

Return value

string

Overrides Constraint::validatedBy

File

lib/Symfony/validator/Symfony/Component/Validator/Constraints/Expression.php, line 55

Class

Expression
@Target({"CLASS", "PROPERTY", "METHOD", "ANNOTATION"})

Namespace

Symfony\Component\Validator\Constraints

Code

public function validatedBy() {
  return 'validator.expression';
}