<?php is_subclass_of(mixed $object_or_class, string $class, bool $allow_string = true): bool
<?php $cast = $this->getCast($key); if ($cast === null || !is_subclass_of($cast, Type::class)) { $this->set($key, $value); continue; }
<?php continue; } if (is_subclass_of($cast, TypeArray::class)) { $this->$set(array_shift($value)); continue; }
<?php } if (!class_exists($cast) || !is_subclass_of($cast, BackedEnum::class)) { return self::$enumCache[$cast] = false; }