| Total Complexity | 5 |
| Total Lines | 66 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | final class Result |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var SplFileInfo |
||
| 13 | */ |
||
| 14 | private $file; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var bool |
||
| 18 | */ |
||
| 19 | private $valid; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var string |
||
| 23 | */ |
||
| 24 | private $actual; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var string |
||
| 28 | */ |
||
| 29 | private $expected; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @param SplFileInfo $file |
||
| 33 | * @param bool $valid |
||
| 34 | * @param string $actual |
||
| 35 | * @param string $expected |
||
| 36 | */ |
||
| 37 | 26 | public function __construct(SplFileInfo $file, bool $valid = false, string $actual = '', string $expected = '') |
|
| 43 | 26 | } |
|
| 44 | |||
| 45 | /** |
||
| 46 | * @return SplFileInfo |
||
| 47 | */ |
||
| 48 | 17 | public function getFile(): SplFileInfo |
|
| 49 | { |
||
| 50 | 17 | return $this->file; |
|
| 51 | } |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @return string |
||
| 55 | */ |
||
| 56 | 16 | public function getActual(): string |
|
| 59 | } |
||
| 60 | |||
| 61 | /** |
||
| 62 | * @return string |
||
| 63 | */ |
||
| 64 | 16 | public function getExpected(): string |
|
| 67 | } |
||
| 68 | |||
| 69 | /** |
||
| 70 | * @return bool |
||
| 71 | */ |
||
| 72 | 23 | public function isValid(): bool |
|
| 77 |