| Total Complexity | 3 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | abstract class Type extends Constraint |
||
| 9 | { |
||
| 10 | const TYPES = [ |
||
| 11 | 'email' => 'email', |
||
| 12 | 'integer' => 'integer', |
||
| 13 | 'number' => 'number', |
||
| 14 | 'url' => 'url', |
||
| 15 | ]; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @inheritdoc |
||
| 19 | */ |
||
| 20 | 5 | protected function getAttribute(): string |
|
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @inheritdoc |
||
| 27 | */ |
||
| 28 | 5 | protected function getValue(): string |
|
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @return string |
||
| 39 | */ |
||
| 40 | abstract protected function getType(): string; |
||
| 41 | } |
||
| 42 |