respect-validation/docs/BoolType.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

536 B

BoolType

  • BoolType()

Validates if the input is a boolean value:

v::boolType()->validate(true); // true
v::boolType()->validate(false); // true

See also: