| Conditions | 3 |
| Paths | 2 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | public function inflectToRelativePath(string $prefix, ClassName $className, string $mappedPath): FilePath |
||
| 11 | { |
||
| 12 | if (substr($prefix, -1) === '_' && $className->beginsWith($prefix)) { |
||
| 13 | $elements = explode('_', $className); |
||
| 14 | $className = implode('\\', $elements); |
||
| 15 | } |
||
| 16 | |||
| 17 | $relativePath = str_replace('\\', '/', (string) $className).'.php'; |
||
| 18 | |||
| 19 | return FilePath::fromParts([$mappedPath, $relativePath]); |
||
| 20 | } |
||
| 21 | |||
| 31 |