| Total Complexity | 3 |
| Total Lines | 18 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | final class FileIncluded extends BaseEvent |
||
| 10 | { |
||
| 11 | private SplFileInfo $fileInfo; |
||
| 12 | |||
| 13 | public function __construct(SplFileInfo $fileInfo) |
||
| 14 | { |
||
| 15 | $this->fileInfo = $fileInfo; |
||
| 16 | parent::__construct("Including file: {$this->getFilename()}"); |
||
| 17 | } |
||
| 18 | |||
| 19 | public function getFilename(): string |
||
| 20 | { |
||
| 21 | return $this->fileInfo->getRelativePathname(); |
||
| 22 | } |
||
| 23 | |||
| 24 | public function getFileInfo(): SplFileInfo |
||
| 27 | } |
||
| 28 | } |
||
| 29 |