gossi\codegen\generator\builder\parts\RoutineBuilderPart::writeFunctionReturnType PHP Method

writeFunctionReturnType() protected method

protected writeFunctionReturnType ( gossi\codegen\model\RoutineInterface $model )
$model gossi\codegen\model\RoutineInterface
    protected function writeFunctionReturnType(RoutineInterface $model)
    {
        $type = $this->getType($model, $this->config->getGenerateReturnTypeHints());
        if ($type !== null && $this->config->getGenerateReturnTypeHints()) {
            $this->writer->write(': ')->write($type);
        }
    }