param = new ReflectionParameter($method, $param);
$this->name = $this->param->name;
if ($this->param->isDefaultValueAvailable())
{
$this->default = Debug::dump($this->param->getDefaultValue());
}
if ($this->param->isPassedByReference())
{
$this->reference = TRUE;
}
if ($this->param->isOptional())
{
$this->optional = TRUE;
}
}
public function __toString()
{
$display = '';
if ($this->type)
{
$display .= ''.$this->type.' ';
}
if ($this->reference)
{
$display .= '& ';
}
if ($this->description)
{
$display .= '$'.$this->name.' ';
}
else
{
$display .= '$'.$this->name.' ';
}
if ($this->default)
{
$display .= '= '.$this->default.' ';
}
return $display;
}
} // End Kodoc_Method_Param