| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 5 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 56 | public function toNull(string $scriptDir): Dependency |
||
| 57 | { |
||
| 58 | assert(is_dir($scriptDir)); |
||
| 59 | $nullObject = new NullObject(); |
||
| 60 | $class = $nullObject->save($this->interface, $scriptDir); |
||
| 61 | |||
| 62 | return new Dependency(new NewInstance(new ReflectionClass($class), new SetterMethods([]))); |
||
| 63 | } |
||
| 65 |