Total Complexity | 2 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
8 | trait EventHooks |
||
9 | { |
||
10 | /** |
||
11 | * @param mixed ...$event |
||
12 | * |
||
13 | * @return \Imanghafoori\HeyMan\YouShouldHave |
||
14 | */ |
||
15 | 5 | public function whenEventHappens(...$event) |
|
16 | { |
||
17 | 5 | return $this->holdWhen($this->normalizeInput($event)); |
|
|
|||
18 | } |
||
19 | |||
20 | /** |
||
21 | * @param $eventName |
||
22 | * |
||
23 | * @return YouShouldHave |
||
24 | */ |
||
25 | 5 | private function holdWhen($eventName): YouShouldHave |
|
30 | } |
||
31 | } |
||
32 |