| 1 | <?php |
||
| 6 | class ImageWidth extends AbstractRule |
||
| 7 | { |
||
| 8 | const OPTION_MAX = 'max'; |
||
| 9 | const OPTION_MIN = 'min'; |
||
| 10 | |||
| 11 | const MESSAGE = 'The image should be at least {min} pixels wide'; |
||
| 12 | |||
| 13 | const LABELED_MESSAGE = '{label} should be at least {min} pixels wide'; |
||
| 14 | |||
| 15 | protected $options = array( |
||
| 16 | self::OPTION_MAX => 1000000, |
||
| 17 | self::OPTION_MIN => 0, |
||
| 18 | ); |
||
| 19 | |||
| 20 | 3 | public function validate($value, $valueIdentifier = null) |
|
| 41 | } |
||
| 42 |