Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
24 | public function __construct(ReflectionClass $originalClass, PropertyGenerator $adapterProperty) |
||
25 | { |
||
26 | 1 | parent::__construct($originalClass, '__unset', [new ParameterGenerator('name')]); |
|
27 | |||
28 | 1 | $this->setDocBlock('@param string $name'); |
|
29 | $this->setBody( |
||
30 | 1 | '$return = $this->' . $adapterProperty->getName() . '->call(' . var_export($originalClass->getName(), true) |
|
31 | 1 | . ', \'__unset\', array($name));' . "\n\n" |
|
32 | 1 | . 'return $return;' |
|
33 | 1 | ); |
|
34 | 1 | } |
|
35 | } |
||
36 |