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