| Total Complexity | 1 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | abstract class Hook implements Change |
||
| 26 | { |
||
| 27 | /** |
||
| 28 | * @var \CaptainHook\App\Console\IO |
||
| 29 | */ |
||
| 30 | protected $io; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Name of the hook to add the action to |
||
| 34 | * |
||
| 35 | * @var string |
||
| 36 | */ |
||
| 37 | protected $hookToChange; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * AddAction constructor |
||
| 41 | * |
||
| 42 | * @param \CaptainHook\App\Console\IO $io |
||
| 43 | * @param string $hookToChange |
||
| 44 | */ |
||
| 45 | 3 | public function __construct(IO $io, string $hookToChange) |
|
| 49 | 3 | } |
|
| 50 | |||
| 51 | /** |
||
| 52 | * Apply changes to the given config |
||
| 53 | * |
||
| 54 | * @param \CaptainHook\App\Config $config |
||
| 55 | * @throws \Exception |
||
| 56 | */ |
||
| 57 | abstract public function applyTo(Config $config); |
||
| 58 | } |
||
| 59 |