| Total Complexity | 5 |
| Total Lines | 51 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | class ChangedFiles extends Base |
||
| 23 | { |
||
| 24 | /** |
||
| 25 | * @var string |
||
| 26 | */ |
||
| 27 | private $from; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @var string |
||
| 31 | */ |
||
| 32 | private $to; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @param string $from |
||
| 36 | * @return \SebastianFeldmann\Git\Command\DiffTree\ChangedFiles |
||
| 37 | */ |
||
| 38 | 3 | public function fromRevision(string $from): ChangedFiles |
|
| 39 | { |
||
| 40 | 3 | $this->from = $from; |
|
| 41 | 3 | return $this; |
|
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @param string $to |
||
| 46 | * @return \SebastianFeldmann\Git\Command\DiffTree\ChangedFiles |
||
| 47 | */ |
||
| 48 | 2 | public function toRevision(string $to): ChangedFiles |
|
| 49 | { |
||
| 50 | 2 | $this->to = $to; |
|
| 51 | 2 | return $this; |
|
| 52 | } |
||
| 53 | |||
| 54 | /** |
||
| 55 | * Return the command to execute. |
||
| 56 | * |
||
| 57 | * @return string |
||
| 58 | * @throws \RuntimeException |
||
| 59 | */ |
||
| 60 | 2 | protected function getGitCommand(): string |
|
| 63 | } |
||
| 64 | |||
| 65 | /** |
||
| 66 | * Return the from commit id to diff |
||
| 67 | * |
||
| 68 | * @return string |
||
| 69 | */ |
||
| 70 | 2 | protected function getVersionsToCompare(): string |
|
| 73 | } |
||
| 74 | } |
||
| 75 |