mirror of
https://github.com/YunoHost-Apps/movim_ynh.git
synced 2024-09-03 19:46:19 +02:00
368 B
368 B
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: