src/ClassFinder.php
private function isA($className, $classType)
    {
        $types = array_merge(
            class_parents($className),
            class_implements($className)
        );
        $this->log(sprintf("Class %s is a %s", $className, implode(', ', $types)));
        return in_array($classType, $types);
    }
private function isA($className, $classType)
    {
        $types = array_merge(
            class_parents($className),
            class_implements($className)
        );
        $this->log(sprintf("Class %s is a %s", $className, implode(', ', $types)));
        return in_array($classType, $types);
    }
private function isA ( $ className , $ classType ) { $ types = array_merge ( class_parents ( $ className ) , class_implements ( $ className ) ) ; $ this -> log ( sprintf ( "Class %s is a %s" , $ className , implode ( ', ' , $ types ) ) ) ; return in_array ( $ classType , $ types ) ; }
Identify if a class-name extends a type or implements an interface
@param string $className
@param string $classType
@return bool
Identify if a class - name extends a type or implements an interface