| Total Complexity | 3 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | class Types extends Constraint |
||
| 14 | { |
||
| 15 | public $message = 'This value should be of type {{ type }}.'; |
||
| 16 | public $types; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * {@inheritdoc} |
||
| 20 | */ |
||
| 21 | public function getDefaultOption() |
||
| 22 | { |
||
| 23 | return 'types'; |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * {@inheritdoc} |
||
| 28 | */ |
||
| 29 | public function getRequiredOptions() |
||
| 30 | { |
||
| 31 | return ['types']; |
||
| 32 | } |
||
| 33 | |||
| 34 | public function validatedBy() |
||
| 37 | } |
||
| 38 | } |