| Total Complexity | 5 |
| Total Lines | 53 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | final class NoVcsChangesCountProcess implements ChangesCountInterface |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * The file the process will be executed on. |
||
| 17 | * |
||
| 18 | * @var File |
||
| 19 | */ |
||
| 20 | private $file; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Class constructor. |
||
| 24 | * |
||
| 25 | * @param File $file The file the process is being executed on. |
||
| 26 | */ |
||
| 27 | public function __construct(File $file) |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Returns the number of changes for a file. |
||
| 34 | */ |
||
| 35 | #[\Override] |
||
| 36 | public function countChanges(): int |
||
| 37 | { |
||
| 38 | return 1; |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Start the process. |
||
| 43 | */ |
||
| 44 | #[\Override] |
||
| 47 | // nothing to do |
||
| 48 | } |
||
| 49 | |||
| 50 | /** |
||
| 51 | * Determines if the process was successful. |
||
| 52 | */ |
||
| 53 | #[\Override] |
||
| 57 | } |
||
| 58 | |||
| 59 | /** |
||
| 60 | * Gets the file the process is being executed on. |
||
| 61 | */ |
||
| 62 | #[\Override] |
||
| 66 | } |
||
| 67 | } |
||
| 68 |