| Total Complexity | 7 |
| Total Lines | 42 |
| Duplicated Lines | 0 % |
| Coverage | 75% |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | final class FilePathResolverResult |
||
| 8 | { |
||
| 9 | public string $dirPath; |
||
| 10 | |||
| 11 | public string $fileName; |
||
| 12 | |||
| 13 | 2 | public function __construct( |
|
| 14 | string $dirPath, |
||
| 15 | string $fileName |
||
| 16 | ) { |
||
| 17 | 2 | $this->dirPath = $dirPath; |
|
| 18 | 2 | $this->fileName = $fileName; |
|
| 19 | 2 | } |
|
| 20 | |||
| 21 | 2 | public function getDirPath(): string |
|
| 24 | } |
||
| 25 | |||
| 26 | public function getFileName(): string |
||
| 27 | { |
||
| 28 | return $this->fileName; |
||
| 29 | } |
||
| 30 | |||
| 31 | 2 | public function getReceivedName(): string |
|
| 34 | } |
||
| 35 | |||
| 36 | public function getApprovedName(): string |
||
| 37 | { |
||
| 38 | return sprintf('%s.approved.txt', $this->fileName); |
||
| 39 | } |
||
| 40 | |||
| 41 | 2 | public function getReceivedFile(): string |
|
| 44 | } |
||
| 45 | |||
| 46 | 2 | public function getApprovedFile(): string |
|
| 47 | { |
||
| 51 |