public function isAssignableFromValue($value)
    {
        if (!is_object($value))
            return false;

        if (get_class($value) === $this->getName())
            return true;

        return is_subclass_of($value, $this->className);
    }
public function isAssignableFromValue($value)
    {
        if (!is_object($value))
            return false;

        if (get_class($value) === $this->getName())
            return true;

        return is_subclass_of($value, $this->className);
    }
public function isAssignableFromValue ( $ value ) { if ( ! is_object ( $ value ) ) return false ; if ( get_class ( $ value ) === $ this -> getName ( ) ) return true ; return is_subclass_of ( $ value , $ this -> className ) ; }
Checks whether the provided value is an instance of either this type or a subclass of this type.

@param mixed $value
@return boolean
Checks whether the provided value is an instance of either this type or a subclass of this type .