respect-validation/docs/rules/Factor.md

34 lines
536 B
Markdown
Raw Permalink Normal View History

2015-09-06 17:37:08 +02:00
# Factor
- `Factor(int $dividend)`
2015-09-06 17:37:08 +02:00
Validates if the input is a factor of the defined dividend.
```php
v::factor(0)->validate(5); // true
v::factor(4)->validate(2); // true
v::factor(4)->validate(3); // false
2015-09-06 17:37:08 +02:00
```
## Categorization
- Math
- Numbers
## Changelog
Version | Description
--------|-------------
1.0.0 | Created
2015-09-06 17:37:08 +02:00
***
See also:
- [Decimal](Decimal.md)
- [Digit](Digit.md)
- [Finite](Finite.md)
- [Infinite](Infinite.md)
- [NumericVal](NumericVal.md)
2018-12-11 13:31:50 +01:00
- [PerfectSquare](PerfectSquare.md)
- [PrimeNumber](PrimeNumber.md)