| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 69 | public function toNull(string $scriptDir): Dependency |
||
| 70 | { |
||
| 71 | assert(is_dir($scriptDir)); |
||
| 72 | $nullObject = new NullObject($scriptDir); |
||
| 73 | $code = $nullObject->getCode($this->interface); |
||
| 74 | $nullObjectClass = $this->interface . 'Null'; |
||
| 75 | $file = sprintf('%s/%s.php', $scriptDir, str_replace('\\', '_', $nullObjectClass)); |
||
| 76 | (new FilePutContents())($file, $code); |
||
| 77 | |||
| 78 | return new Dependency(new NewInstance(new ReflectionClass($nullObjectClass), new SetterMethods([]))); |
||
| 79 | } |
||
| 80 | } |
||
| 81 |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.