Expression.php in Plug 7
File
lib/Symfony/validator/Symfony/Component/Validator/Constraints/Expression.php
View source
<?php
namespace Symfony\Component\Validator\Constraints;
use Symfony\Component\Validator\Constraint;
class Expression extends Constraint {
public $message = 'This value is not valid.';
public $expression;
public function getDefaultOption() {
return 'expression';
}
public function getRequiredOptions() {
return array(
'expression',
);
}
public function getTargets() {
return array(
self::CLASS_CONSTRAINT,
self::PROPERTY_CONSTRAINT,
);
}
public function validatedBy() {
return 'validator.expression';
}
}
Classes
Name |
Description |
Expression |
@Target({"CLASS", "PROPERTY", "METHOD", "ANNOTATION"}) |