| Total Complexity | 4 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 5 | final class ResultProcessedFile implements ResultProcessedFileEditableInterface |
||
| 6 | { |
||
| 7 | /** @var string */ |
||
| 8 | private $file; |
||
| 9 | |||
| 10 | /** @var array<ErrorResult> */ |
||
| 11 | private $conflicts = []; |
||
| 12 | |||
| 13 | public function __construct(string $file) |
||
| 14 | { |
||
| 15 | $this->file = $file; |
||
| 16 | } |
||
| 17 | |||
| 18 | public function getFileName(): String |
||
| 19 | { |
||
| 20 | return $this->file; |
||
| 21 | } |
||
| 22 | |||
| 23 | public function addConflic(ErrorResult $conflic): void |
||
| 24 | { |
||
| 25 | $this->conflicts[] = $conflic; |
||
| 26 | } |
||
| 27 | |||
| 28 | /** @return array<ErrorResult> */ |
||
| 29 | public function getConflicts(): array |
||
| 32 | } |
||
| 33 | } |
||
| 34 |