Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 366 Bytes

Instance.md

File metadata and controls

17 lines (11 loc) · 366 Bytes

Instance

  • v::instance(string $instanceName)

Validates if the input is an instance of the given class or interface.

v::instance('DateTime')->validate(new DateTime); //true
v::instance('Traversable')->validate(new ArrayObject); //true

Message template for this validator includes {{instanceName}}.


See also: