| Total Complexity | 2 |
| Total Lines | 43 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class Local implements Template |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var string |
||
| 13 | */ |
||
| 14 | private $vendorPath; |
||
| 15 | /** |
||
| 16 | * @var string |
||
| 17 | */ |
||
| 18 | private $configPath; |
||
| 19 | |||
| 20 | 5 | public function __construct(string $repoPath, string $vendorPath, string $configPath) |
|
| 24 | 5 | } |
|
| 25 | |||
| 26 | /** |
||
| 27 | * Return the code for the git hook scripts. |
||
| 28 | * |
||
| 29 | * @param string $hook Name of the hook to trigger. |
||
| 30 | * |
||
| 31 | * @return string |
||
| 32 | */ |
||
| 33 | 5 | public function getCode(string $hook): string |
|
| 52 | } |
||
| 53 | } |