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