<?php is_subclass_of(mixed $object_or_class, string $class, bool $allow_string = true): bool
<?php $wrapperClass = Connection::class; if (isset($params['wrapperClass'])) { if (! is_subclass_of($params['wrapperClass'], $wrapperClass)) { throw Exception::invalidWrapperClass($params['wrapperClass']); }