Total Complexity | 1 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
7 | trait HandlesCallbacks |
||
8 | { |
||
9 | /** |
||
10 | * Callback to hook into parent construct |
||
11 | * before any other call is performed. |
||
12 | * |
||
13 | * @var Closure |
||
14 | */ |
||
15 | protected Closure $before; |
||
16 | |||
17 | /** |
||
18 | * Set the "before" callback. |
||
19 | * |
||
20 | * @param Closure $callback |
||
21 | * |
||
22 | * @return void |
||
23 | */ |
||
24 | 16 | protected function beforeParentCalls(Closure $callback): void |
|
29 |