code/object/abstract.php
public function inherits($class)
    {
        if ($this instanceof $class) {
            return true;
        }

        $objects = array_values($this->__mixed_methods);

        foreach($objects as $object)
        {
            if($object instanceof $class) {
                return true;
            }
        }

        return false;
    }
public function inherits($class)
    {
        if ($this instanceof $class) {
            return true;
        }

        $objects = array_values($this->__mixed_methods);

        foreach($objects as $object)
        {
            if($object instanceof $class) {
                return true;
            }
        }

        return false;
    }
public function inherits ( $ class ) { if ( $ this instanceof $ class ) { return true ; } $ objects = array_values ( $ this -> __mixed_methods ) ; foreach ( $ objects as $ object ) { if ( $ object instanceof $ class ) { return true ; } } return false ; }
Checks if the object or one of its mixins inherits from a class.

@param   string|object   The class to check
@return  boolean         Returns TRUE if the object inherits from the class
Checks if the object or one of its mixins inherits from a class .