| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 28 | public function getFilename(): string |
||
| 29 | { |
||
| 30 | try { |
||
| 31 | $suffix = (new \ReflectionClass($this->getKey()))->getShortName(); |
||
| 32 | } catch (\Exception $e) { |
||
| 33 | $namespaceParts = explode('\\', $this->getKey()); |
||
| 34 | $suffix = array_pop($namespaceParts); |
||
| 35 | } |
||
| 36 | |||
| 37 | return 'sitemap_' . $suffix; |
||
| 38 | } |
||
| 54 |