1 | <?php |
||
13 | class CodeFileGeneratorConfig extends CodeGeneratorConfig { |
||
14 | |||
15 | 9 | protected function configureOptions(OptionsResolver $resolver) { |
|
43 | |||
44 | /** |
||
45 | * |
||
46 | * @param mixed $value |
||
47 | * @return Docblock|null |
||
48 | */ |
||
49 | 9 | private function toDocblock($value) { |
|
56 | |||
57 | /** |
||
58 | * Returns the file header comment |
||
59 | * |
||
60 | * @return string the header comment |
||
61 | */ |
||
62 | 7 | public function getHeaderComment() { |
|
65 | |||
66 | /** |
||
67 | * Sets the file header comment |
||
68 | * |
||
69 | * @param string $comment the header comment |
||
70 | * @return $this |
||
71 | */ |
||
72 | 1 | public function setHeaderComment($comment) { |
|
76 | |||
77 | /** |
||
78 | * Returns the file header docblock |
||
79 | * |
||
80 | * @return Docblock the docblock |
||
81 | */ |
||
82 | 7 | public function getHeaderDocblock() { |
|
85 | |||
86 | /** |
||
87 | * Sets the file header docblock |
||
88 | * |
||
89 | * @param Docblock $docblock the docblock |
||
90 | * @return $this |
||
91 | */ |
||
92 | 1 | public function setHeaderDocblock(Docblock $docblock) { |
|
96 | |||
97 | /** |
||
98 | * Returns whether a blank line should be generated at the end of the file |
||
99 | * |
||
100 | * @return bool `true` if it will be generated and `false` if not |
||
101 | */ |
||
102 | 7 | public function getBlankLineAtEnd() { |
|
105 | |||
106 | /** |
||
107 | * Sets whether a blank line should be generated at the end of the file |
||
108 | * |
||
109 | * @param bool $show `true` if it will be generated and `false` if not |
||
110 | * @return $this |
||
111 | */ |
||
112 | 1 | public function setBlankLineAtEnd($show) { |
|
116 | |||
117 | /** |
||
118 | * Returns whether a `declare(strict_types=1);` statement should be printed |
||
119 | * below the header comments (PHP 7) |
||
120 | * |
||
121 | * @return bool `true` if it will be printed and `false` if not |
||
122 | */ |
||
123 | 8 | public function getDeclareStrictTypes() { |
|
126 | |||
127 | /** |
||
128 | * Sets whether a `declare(strict_types=1);` statement should be printed |
||
129 | * below the header comments (PHP 7) |
||
130 | * |
||
131 | * @param bool $strict `true` if it will be printed and `false` if not |
||
132 | * @return $this |
||
133 | */ |
||
134 | 1 | public function setDeclareStrictTypes($strict) { |
|
138 | } |
||
139 |