Total Complexity | 2 |
Total Lines | 19 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | final class FileMatchesType extends Constraint |
||
17 | { |
||
18 | /** @var string */ |
||
19 | public $messageImage = 'This file cannot be uploaded as an image'; |
||
20 | |||
21 | /** @var string */ |
||
22 | public $messageVideo = 'This file cannot be uploaded as an video'; |
||
23 | |||
24 | /** @var string */ |
||
25 | public $field; |
||
26 | |||
27 | public function getTargets(): string |
||
28 | { |
||
29 | return self::CLASS_CONSTRAINT; |
||
30 | } |
||
31 | |||
32 | public function validatedBy(): string |
||
35 | } |
||
36 | } |
||
37 |