| Total Complexity | 3 |
| Total Lines | 42 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | class PrePush implements Git\Range |
||
| 26 | { |
||
| 27 | /** |
||
| 28 | * @var \CaptainHook\App\Git\Rev\PrePush |
||
| 29 | */ |
||
| 30 | private Rev $from; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @var \CaptainHook\App\Git\Rev\PrePush |
||
| 34 | */ |
||
| 35 | private Rev $to; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Constructor |
||
| 39 | * |
||
| 40 | * @param \CaptainHook\App\Git\Rev\PrePush $from |
||
| 41 | * @param \CaptainHook\App\Git\Rev\PrePush $to |
||
| 42 | */ |
||
| 43 | 13 | public function __construct(Rev $from, Rev $to) |
|
| 47 | } |
||
| 48 | |||
| 49 | /** |
||
| 50 | * Returns the start ref |
||
| 51 | * |
||
| 52 | * @return \CaptainHook\App\Git\Rev\PrePush |
||
| 53 | */ |
||
| 54 | 13 | public function from(): Rev |
|
| 57 | } |
||
| 58 | |||
| 59 | /** |
||
| 60 | * Returns the end ref |
||
| 61 | * |
||
| 62 | * @return \CaptainHook\App\Git\Rev\PrePush |
||
| 63 | */ |
||
| 64 | 12 | public function to(): Rev |
|
| 69 |