1 | <?php |
||
8 | class Size extends AbstractRule |
||
9 | { |
||
10 | const OPTION_SIZE = 'size'; |
||
11 | |||
12 | const MESSAGE = 'The file should not exceed {size}'; |
||
13 | |||
14 | const LABELED_MESSAGE = '{label} should not exceed {size}'; |
||
15 | |||
16 | protected $options = [ |
||
17 | self::OPTION_SIZE => '2M' |
||
18 | ]; |
||
19 | |||
20 | 4 | public function validate($value, string $valueIdentifier = null) |
|
35 | } |
||
36 |