Total Complexity | 2 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
25 | class WriteCacheFile implements Handler |
||
26 | { |
||
27 | /** |
||
28 | * Path to the commit message cache file |
||
29 | * |
||
30 | * @var string |
||
31 | */ |
||
32 | private $file; |
||
33 | |||
34 | /** |
||
35 | * @param string $file |
||
36 | */ |
||
37 | 2 | public function __construct(string $file) |
|
40 | } |
||
41 | /** |
||
42 | * Writes the commit message to a cache file to reuse it for the next commit |
||
43 | * |
||
44 | * @return void |
||
45 | */ |
||
46 | 1 | public function handle(Event $event) |
|
53 |