Type.php in Plug 7
File
lib/Symfony/validator/Symfony/Component/Validator/Constraints/Type.php
View source
<?php
namespace Symfony\Component\Validator\Constraints;
use Symfony\Component\Validator\Constraint;
class Type extends Constraint {
public $message = 'This value should be of type {{ type }}.';
public $type;
public function getDefaultOption() {
return 'type';
}
public function getRequiredOptions() {
return array(
'type',
);
}
}
Classes
Name |
Description |
Type |
@Target({"PROPERTY", "METHOD", "ANNOTATION"}) |