Objects¶ You can check the input is an object of a given instance like this: use Innmind\Validation\Instance; $validate = Instance::of(SomeClass::class);