1# Instance 2 3- `v::instance(string $instanceName)` 4 5Validates if the input is an instance of the given class or interface. 6 7```php 8v::instance('DateTime')->validate(new DateTime); // true 9v::instance('Traversable')->validate(new ArrayObject); // true 10``` 11 12Message template for this validator includes `{{instanceName}}`. 13 14*** 15See also: 16 17 * [ObjectType](ObjectType.md) 18