protected writeFunctionStatement ( gossi\codegen\model\RoutineInterface $model ) | ||
$model | gossi\codegen\model\RoutineInterface |
protected function writeFunctionStatement(RoutineInterface $model)
{
$this->writer->write('function ');
if ($model->isReferenceReturned()) {
$this->writer->write('& ');
}
$this->writer->write($model->getName() . '(');
$this->writeParameters($model);
$this->writer->write(')');
$this->writeFunctionReturnType($model);
}