Returns whether a reference is returned
public isReferenceReturned ( ) : boolean | ||
Результат | boolean |
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); }