Phan\Language\Element\Method::__toString PHP Method

__toString() public method

public __toString ( ) : string
return string A string representation of this method signature
    public function __toString() : string
    {
        $string = '';
        $string .= 'function ';
        if ($this->returnsRef()) {
            $string .= '&';
        }
        $string .= $this->getName();
        $string .= '(' . implode(', ', $this->getParameterList()) . ')';
        if (!$this->getUnionType()->isEmpty()) {
            $string .= ' : ' . (string) $this->getUnionType();
        }
        return $string;
    }