| 1 | <?php declare(strict_types = 1); |
||
| 6 | class Config |
||
| 7 | { |
||
| 8 | /** |
||
| 9 | * The number of files to display in the results table. |
||
| 10 | * @var integer |
||
| 11 | */ |
||
| 12 | private $filesToShow; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * The number of parallel jobs to use to process the files. |
||
| 16 | * @var integer |
||
| 17 | */ |
||
| 18 | private $parallelJobs; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * How far back in the git history to go to count commits. |
||
| 22 | * @var string |
||
| 23 | */ |
||
| 24 | private $commitsSince; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * The paths to files to ignore when processing. |
||
| 28 | * @var array |
||
| 29 | */ |
||
| 30 | private $filesToIgnore; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Config constructor. |
||
| 34 | * @param array $rawData Raw config data. |
||
| 35 | */ |
||
| 36 | public function __construct(array $rawData = []) |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Get the number of files to display in the results table. |
||
| 46 | * @return integer |
||
| 47 | */ |
||
| 48 | public function getFilesToShow(): int |
||
| 52 | |||
| 53 | /** |
||
| 54 | * Get the number of parallel jobs to use to process the files. |
||
| 55 | * @return integer |
||
| 56 | */ |
||
| 57 | public function getParallelJobs(): int |
||
| 61 | |||
| 62 | /** |
||
| 63 | * Get how far back in the git history to go to count commits. |
||
| 64 | * @return string |
||
| 65 | */ |
||
| 66 | public function getCommitsSince(): string |
||
| 70 | |||
| 71 | /** |
||
| 72 | * Get the paths to files to ignore when processing. |
||
| 73 | * @return array |
||
| 74 | */ |
||
| 75 | public function getFilesToIgnore(): array |
||
| 79 | } |
||
| 80 |