protected function classIs($class, $base)
    {
        if (is_array($base)) {
            foreach ($base as $nextBase) {
                if ($this->classIs($class, $nextBase)) {
                    return true;
                }
            }
            return false;
        }

        // Check single origin
        return $class === $base || is_subclass_of($class, $base);
    }
protected function classIs($class, $base)
    {
        if (is_array($base)) {
            foreach ($base as $nextBase) {
                if ($this->classIs($class, $nextBase)) {
                    return true;
                }
            }
            return false;
        }

        // Check single origin
        return $class === $base || is_subclass_of($class, $base);
    }
protected function classIs ( $ class , $ base ) { if ( is_array ( $ base ) ) { foreach ( $ base as $ nextBase ) { if ( $ this -> classIs ( $ class , $ nextBase ) ) { return true ; } } return false ; } // Check single origin return $ class === $ base || is_subclass_of ( $ class , $ base ) ; }
Determine if the given object is one of the given type

@param string $class
@param array|string $base Class or list of base classes
@return bool
Determine if the given object is one of the given type