@@ 168-179 (lines=12) @@ | ||
165 | return $stmt; |
|
166 | } |
|
167 | ||
168 | protected function createProperty(string $type, string $name, $details): Property |
|
169 | { |
|
170 | $property = $this->factory->property($name) |
|
171 | ->makeProtected() |
|
172 | ->setDocComment("/**\r\n * @var " . $type . "\r\n */") |
|
173 | ; |
|
174 | if (isset($details['default'])) { |
|
175 | $property->setDefault($details['default']); |
|
176 | } |
|
177 | ||
178 | return $property; |
|
179 | } |
|
180 | ||
181 | protected function createMethod( |
|
182 | array $types, |
@@ 144-155 (lines=12) @@ | ||
141 | return $stmt; |
|
142 | } |
|
143 | ||
144 | protected function createProperty(string $type, string $name, $details): Property |
|
145 | { |
|
146 | $property = $this->factory->property($name) |
|
147 | ->makeProtected() |
|
148 | ->setDocComment("/**\r\n * @var " . $type . "\r\n */") |
|
149 | ; |
|
150 | if (isset($details['default'])) { |
|
151 | $property->setDefault($details['default']); |
|
152 | } |
|
153 | ||
154 | return $property; |
|
155 | } |
|
156 | ||
157 | protected function createMethod( |
|
158 | array $types, |