1 | <?php |
||
7 | class CodeFileGeneratorConfig extends CodeGeneratorConfig { |
||
8 | |||
9 | 9 | protected function getOptionalOptions() { |
|
14 | |||
15 | 9 | protected function getDefaultOptions() { |
|
30 | |||
31 | 9 | protected function getAllowedOptionTypes() { |
|
39 | |||
40 | /** |
||
41 | * Returns the file header comment |
||
42 | * |
||
43 | * @return string the header comment |
||
44 | */ |
||
45 | 8 | public function getHeaderComment() { |
|
48 | |||
49 | /** |
||
50 | * Sets the file header comment |
||
51 | * |
||
52 | * @param string $comment the header comment |
||
53 | * @return $this |
||
54 | */ |
||
55 | 1 | public function setHeaderComment($comment) { |
|
59 | |||
60 | /** |
||
61 | * Returns the file header docblock |
||
62 | * |
||
63 | * @return Docblock the docblock |
||
64 | */ |
||
65 | 8 | public function getHeaderDocblock() { |
|
68 | |||
69 | /** |
||
70 | * Sets the file header docblock |
||
71 | * |
||
72 | * @param Docblock $docblock the docblock |
||
73 | * @return $this |
||
74 | */ |
||
75 | 1 | public function setHeaderDocblock(Docblock $docblock) { |
|
79 | |||
80 | /** |
||
81 | * Returns whether a blank line should be generated at the end of the file |
||
82 | * |
||
83 | * @return boolean `true` if it will be generated and `false` if not |
||
84 | */ |
||
85 | 8 | public function getBlankLineAtEnd() { |
|
88 | |||
89 | /** |
||
90 | * Sets whether a blank line should be generated at the end of the file |
||
91 | * |
||
92 | * @param boolean $show `true` if it will be generated and `false` if not |
||
93 | * @return $this |
||
94 | */ |
||
95 | 1 | public function setBlankLineAtEnd($show) { |
|
99 | |||
100 | /** |
||
101 | * Returns whether a `declare(strict_types=1);` statement should be printed |
||
102 | * below the header comments (PHP 7) |
||
103 | * |
||
104 | * @return boolean `true` if it will be printed and `false` if not |
||
105 | */ |
||
106 | 9 | public function getDeclareStrictTypes() { |
|
109 | |||
110 | /** |
||
111 | * Sets whether a `declare(strict_types=1);` statement should be printed |
||
112 | * below the header comments (PHP 7) |
||
113 | * |
||
114 | * @param boolean $strict `true` if it will be printed and `false` if not |
||
115 | * @return $this |
||
116 | */ |
||
117 | 1 | public function setDeclareStrictTypes($strict) { |
|
121 | } |
||
122 |