mirror of
https://github.com/Respect/Validation.git
synced 2026-03-16 15:25:45 +01:00
551 B
551 B
Instance
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}}.
Categorization
- Objects
Changelog
| Version | Description |
|---|---|
| 0.3.9 | Created |
See also: