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

565 B

CallableType

  • CallableType()

Validates if the input is a callable value.

v::callableType()->validate(function () {}); // true
v::callableType()->validate('trim'); // true
v::callableType()->validate([new ObjectType, 'methodName']); // true

See also: