| @@ 82-91 (lines=10) @@ | ||
| 79 | * |
|
| 80 | * @return string |
|
| 81 | */ |
|
| 82 | protected function buildArguments() : string |
|
| 83 | { |
|
| 84 | $argumentsString = []; |
|
| 85 | foreach ($this->arguments as $argumentName => $argumentType) { |
|
| 86 | // Group name with type |
|
| 87 | $argumentsString[] = ($argumentType !== null ? $argumentType . ' ' : '') . '$' . $argumentName; |
|
| 88 | } |
|
| 89 | ||
| 90 | return implode(', ', $argumentsString); |
|
| 91 | } |
|
| 92 | ||
| 93 | /** |
|
| 94 | * Build function arguments. |
|
| @@ 98-107 (lines=10) @@ | ||
| 95 | * |
|
| 96 | * @return string |
|
| 97 | */ |
|
| 98 | protected function buildArguments() : string |
|
| 99 | { |
|
| 100 | $argumentsString = []; |
|
| 101 | foreach ($this->arguments as $argumentName => $argumentType) { |
|
| 102 | // Group name with type |
|
| 103 | $argumentsString[] = ($argumentType !== null ? $argumentType . ' ' : '') . '$' . $argumentName; |
|
| 104 | } |
|
| 105 | ||
| 106 | return implode(', ', $argumentsString); |
|
| 107 | } |
|
| 108 | ||
| 109 | /** |
|
| 110 | * Build function definition. |
|