public function __toString()
{
$string = '$' . $this->name;
if ($this->isReference === true) {
$string = '& ' . $string;
}
if ($this->type !== null) {
$string = $this->type . ' ' . $string;
}
if ($this->defaultValueIsSet === true) {
$string .= '=' . var_export($this->defaultValue, true);
}
return $string;
}