1 | <?php declare(strict_types = 1); |
||
13 | class CommentsGenerator extends AbstractGenerator |
||
14 | { |
||
15 | /** |
||
16 | * Set @var comment line. |
||
17 | * |
||
18 | * @param string $type Type |
||
19 | * @param string|null $description Description |
||
20 | * |
||
21 | * @return CommentsGenerator |
||
22 | */ |
||
23 | public function defVar(string $type, string $description = null) : CommentsGenerator |
||
27 | |||
28 | /** |
||
29 | * {@inheritdoc} |
||
30 | */ |
||
31 | public function code($indentation = 0) : string |
||
39 | |||
40 | /** |
||
41 | * Format comments code into single line comment. |
||
42 | * |
||
43 | * @param string $indentation Indentation string |
||
44 | * |
||
45 | * @return string Single line comments code |
||
46 | */ |
||
47 | protected function formatSingleLine(string $indentation) |
||
51 | |||
52 | /** |
||
53 | * Format comments code into multi line comment. |
||
54 | * |
||
55 | * @param string $indentation Indentation string |
||
56 | * |
||
57 | * @return string Multi-line comments code |
||
58 | */ |
||
59 | protected function formatMultiLine(string $indentation) |
||
72 | } |
||
73 |