| 1 | <?php declare(strict_types = 1); |
||
| 13 | trait CodeTrait |
||
| 14 | { |
||
| 15 | /** @var array Collection of code lines */ |
||
| 16 | protected $code = []; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Add function code line. |
||
| 20 | * |
||
| 21 | * @param string $code Code line |
||
| 22 | * |
||
| 23 | * @return $this |
||
| 24 | */ |
||
| 25 | public function defLine(string $code) |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Build arguments list with types. |
||
| 34 | * |
||
| 35 | * @param array $arguments Arguments collection |
||
| 36 | * |
||
| 37 | * @return string Arguments list |
||
| 38 | */ |
||
| 39 | protected function buildArguments(array $arguments) : string |
||
| 49 | } |
||
| 50 |