|
@@ 163-175 (lines=13) @@
|
| 160 |
|
|
| 161 |
|
protected function appendPropertiesMethods(ClassManager $classManager, ArrayCollection $appendTo) |
| 162 |
|
{ |
| 163 |
|
foreach ($classManager->getProperties() as $property) { |
| 164 |
|
if ($property->isTypeBoolean()) { |
| 165 |
|
$appendTo->add((new MethodGetterBooleanManager($classManager))->setProperty($property)); |
| 166 |
|
} |
| 167 |
|
|
| 168 |
|
$methodSetterManager = new MethodSetterManager($classManager); |
| 169 |
|
$methodSetterManager->setProperty($property); |
| 170 |
|
$methodGetterManager = new MethodGetterManager($classManager); |
| 171 |
|
$methodGetterManager->setProperty($property); |
| 172 |
|
|
| 173 |
|
$appendTo->add($methodSetterManager); |
| 174 |
|
$appendTo->add($methodGetterManager); |
| 175 |
|
} |
| 176 |
|
} |
| 177 |
|
|
| 178 |
|
protected function appendMethodsDerivedFromInterface(ClassManager $classManager, ArrayCollection $appendTo) |
|
@@ 203-215 (lines=13) @@
|
| 200 |
|
{ |
| 201 |
|
$methodsForInterface = new ArrayCollection(); |
| 202 |
|
$classManager = $interface->getClassManager(); |
| 203 |
|
foreach ($classManager->getProperties() as $property) { |
| 204 |
|
if ($property->isTypeBoolean()) { |
| 205 |
|
$methodsForInterface->add((new MethodGetterBooleanInterfaceManager($classManager))->setProperty($property)); |
| 206 |
|
} |
| 207 |
|
|
| 208 |
|
$methodSetterInterfaceManager = new MethodSetterInterfaceManager($classManager); |
| 209 |
|
$methodSetterInterfaceManager->setProperty($property); |
| 210 |
|
$methodGetterInterfaceManager = new MethodGetterInterfaceManager($classManager); |
| 211 |
|
$methodGetterInterfaceManager->setProperty($property); |
| 212 |
|
|
| 213 |
|
$methodsForInterface->add($methodSetterInterfaceManager); |
| 214 |
|
$methodsForInterface->add($methodGetterInterfaceManager); |
| 215 |
|
} |
| 216 |
|
|
| 217 |
|
$interface->setMethods($methodsForInterface); |
| 218 |
|
|