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