| 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 | 1 | { |
|
| 26 | parent::__construct($originalClass, '__isset', [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 | . ', \'__isset\', array($name));' . "\n\n" |
|
| 32 | 1 | . 'return $return;' |
|
| 33 | 1 | ); |
|
| 34 | } |
||
| 35 | } |
||
| 36 |