Conditions | 3 |
Paths | 3 |
Total Lines | 13 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
20 | public function __construct(Container $currentApp, Container $snapshotApp) |
||
21 | { |
||
22 | parent::__construct($currentApp, $snapshotApp); |
||
23 | $currentReflection = new \ReflectionObject($this->currentApp); |
||
24 | $defaultValues = $currentReflection->getDefaultProperties(); |
||
25 | foreach ($this->properties as $property => &$initValue) { |
||
26 | if ($currentReflection->hasProperty($property)) { |
||
27 | $this->cleanProperties[$property] = $currentReflection->getProperty($property); |
||
28 | $this->cleanProperties[$property]->setAccessible(true); |
||
29 | $initValue = $defaultValues[$property]; |
||
30 | } |
||
31 | } |
||
32 | unset($initValue); |
||
33 | } |
||
41 | } |