respect-validation/docs/PerfectSquare.md
Henrique Moody 2a2e1d577e
Change how documentation of rules are presented
Rules are not always used from the alias `v`, neither called staticaly.
2017-03-27 17:26:21 +02:00

247 B

PerfectSquare

  • PerfectSquare()

Validates a perfect square.

v::perfectSquare()->validate(25); // true (5*5)
v::perfectSquare()->validate(9); // true (3*3)

See also: