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