| 1 | <?php |
||
| 11 | class PhpGuardCoverageGitIgnoreConfigurator |
||
| 12 | { |
||
| 13 | const FILE_TO_IGNORE = '.guard_coverage'; |
||
| 14 | /** |
||
| 15 | * @var QueryBus |
||
| 16 | */ |
||
| 17 | private $queryBus; |
||
| 18 | /** |
||
| 19 | * @var CommandBus |
||
| 20 | */ |
||
| 21 | private $commandBus; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * PhpGuardCoverageGitIgnoreConfigurator constructor. |
||
| 25 | * |
||
| 26 | * @param QueryBus $queryBus |
||
| 27 | * @param CommandBus $commandBus |
||
| 28 | */ |
||
| 29 | 5 | public function __construct(QueryBus $queryBus, CommandBus $commandBus) |
|
| 34 | |||
| 35 | 3 | public function configure() |
|
| 46 | |||
| 47 | /** |
||
| 48 | * @param $data |
||
| 49 | * |
||
| 50 | * @return bool |
||
| 51 | */ |
||
| 52 | 3 | private function isFileIgnored($data) |
|
| 56 | |||
| 57 | /** |
||
| 58 | * @param string $gitIgnoreContent |
||
| 59 | * |
||
| 60 | * @return string |
||
| 61 | */ |
||
| 62 | 2 | private function getContent($gitIgnoreContent) |
|
| 66 | } |
||
| 67 |