| Total Complexity | 2 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class SubversionChangesCountProcess extends ChurnProcess implements ChangesCountInterface |
||
| 13 | { |
||
| 14 | |||
| 15 | /** |
||
| 16 | * Class constructor. |
||
| 17 | * |
||
| 18 | * @param File $file The file the process is being executed on. |
||
| 19 | * @param string $dateRange String containing a date range formatted for SVN. |
||
| 20 | */ |
||
| 21 | public function __construct(File $file, string $dateRange) |
||
| 22 | { |
||
| 23 | $process = new Process(['svn', 'log', '-q', '-r', $dateRange, $file->getFullPath()]); |
||
| 24 | |||
| 25 | parent::__construct($file, $process); |
||
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Returns the number of changes for a file. |
||
| 30 | */ |
||
| 31 | public function countChanges(): int |
||
| 34 | } |
||
| 35 | } |
||
| 36 |