public function inherits($class)
    {
        $result = false;
        $object = $this->getObject();

        if ($object instanceof AnObject) {
            $result = $object->inherits($class);
        } else {
            $result = $object instanceof $class;
        }

        return $result;
    }
public function inherits($class)
    {
        $result = false;
        $object = $this->getObject();

        if ($object instanceof AnObject) {
            $result = $object->inherits($class);
        } else {
            $result = $object instanceof $class;
        }

        return $result;
    }
public function inherits ( $ class ) { $ result = false ; $ object = $ this -> getObject ( ) ; if ( $ object instanceof AnObject ) { $ result = $ object -> inherits ( $ class ) ; } else { $ result = $ object instanceof $ class ; } return $ result ; }
Checks if the decorated object or one of it's mixins inherits from a class.

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