Conditions | 1 |
Paths | 1 |
Total Lines | 20 |
Code Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | public function __construct( |
||
14 | PropertyGenerator $wrappedObjectProperty, |
||
15 | PropertyGenerator $initializerProperty, |
||
16 | PropertyGenerator $lazyPropertiesProperty, |
||
17 | PropertyGenerator $methodReplacementsProperty |
||
18 | ) { |
||
19 | parent::__construct('__sleep'); |
||
20 | $wrappedObject = $wrappedObjectProperty->getName(); |
||
21 | $initializer = $initializerProperty->getName(); |
||
22 | $lazyProperties = $lazyPropertiesProperty->getName(); |
||
23 | $methodReplacements = $methodReplacementsProperty->getName(); |
||
24 | |||
25 | $this->setBody(sprintf( |
||
26 | "return array(\"%s\", \"%s\", \"%s\", \"%s\");", |
||
27 | $wrappedObject, |
||
28 | $initializer, |
||
29 | $lazyProperties, |
||
30 | $methodReplacements |
||
31 | )); |
||
32 | } |
||
33 | } |
||
34 |