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;
}