Inpsyde\MultilingualPress\Factory\GenericFactory::check_class PHP Method

check_class() private method

Checks if the class with the given name is valid with respect to the defined base.
private check_class ( string $class ) : void
$class string FQN of the class to be checked.
return void
    private function check_class($class)
    {
        if (!is_subclass_of($class, $this->base, true) && (!$this->base_is_class || $class !== $this->base)) {
            throw new InvalidClassException(sprintf('The class "%1$s" is invalid with respect to the defined base "%2$s".', $class, $this->base));
        }
    }