respect-validation/docs/CallableType.md
2015-08-20 01:38:41 -03:00

324 B

CallableType

  • v::callableType()

Validates if the input is a callable value.

v::callableType()->validate(function () {}); //true
v::callableType()->validate('trim'); //true
v::callableType()->validate(array(new Object, 'methodName')); //true

See also: