public function build(AbstractModel $model)
{
$type = $this->getType($model, $this->config->getGenerateScalarTypeHints());
if ($type !== null) {
$this->writer->write($type . ' ');
}
if ($model->isPassedByReference()) {
$this->writer->write('&');
}
$this->writer->write('$' . $model->getName());
if ($model->hasValue()) {
$this->writer->write(' = ');
$this->writeValue($model);
}
}