| 1 | <?php |
||
| 10 | final class MultipleOf implements ConstraintInterface |
||
| 11 | { |
||
| 12 | const KEYWORD = 'multipleOf'; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var int|null |
||
| 16 | */ |
||
| 17 | private $precision; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @param int|null $precision |
||
| 21 | */ |
||
| 22 | 8 | public function __construct($precision = 10) |
|
| 26 | |||
| 27 | /** |
||
| 28 | * {@inheritdoc} |
||
| 29 | */ |
||
| 30 | 8 | public function validate($value, $parameter, Validator $validator) |
|
| 47 | } |
||
| 48 |