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