public function isAssignableFrom(Type $type)
    {
        if ($type->getName() === $this->getName())
            return true;

        if (!($type instanceof ClassType))
            return false;

        return $type->isSubtypeOf($this);
    }
public function isAssignableFrom(Type $type)
    {
        if ($type->getName() === $this->getName())
            return true;

        if (!($type instanceof ClassType))
            return false;

        return $type->isSubtypeOf($this);
    }
public function isAssignableFrom ( Type $ type ) { if ( $ type -> getName ( ) === $ this -> getName ( ) ) return true ; if ( ! ( $ type instanceof ClassType ) ) return false ; return $ type -> isSubtypeOf ( $ this ) ; }
Checks whether the provided type equals this type or is a subtype of this type.

@param Type $type
@return boolean
Checks whether the provided type equals this type or is a subtype of this type .