@@ 153-164 (lines=12) @@ | ||
150 | return $stmt; |
|
151 | } |
|
152 | ||
153 | protected function createProperty(string $type, string $name, $details): Property |
|
154 | { |
|
155 | $property = $this->factory->property($name) |
|
156 | ->makeProtected() |
|
157 | ->setDocComment("/**\r\n * @var " . $type . "\r\n */") |
|
158 | ; |
|
159 | if (isset($details['default'])) { |
|
160 | $property->setDefault($details['default']); |
|
161 | } |
|
162 | ||
163 | return $property; |
|
164 | } |
|
165 | ||
166 | protected function createMethod( |
|
167 | string $type, |
@@ 134-145 (lines=12) @@ | ||
131 | return $stmt; |
|
132 | } |
|
133 | ||
134 | protected function createProperty(string $type, string $name, $details): Property |
|
135 | { |
|
136 | $property = $this->factory->property($name) |
|
137 | ->makeProtected() |
|
138 | ->setDocComment("/**\r\n * @var " . $type . "\r\n */") |
|
139 | ; |
|
140 | if (isset($details['default'])) { |
|
141 | $property->setDefault($details['default']); |
|
142 | } |
|
143 | ||
144 | return $property; |
|
145 | } |
|
146 | ||
147 | protected function createMethod( |
|
148 | string $type, |