Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 549 Bytes

Instance.md

File metadata and controls

30 lines (20 loc) · 549 Bytes

Instance

  • Instance(string $instanceName)

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

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

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

Categorization

  • Objects

Changelog

Version Description
0.3.9 Created

See also: