Total Complexity | 2 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Changes | 4 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | trait CalculateTimeDiff |
||
10 | { |
||
11 | /** |
||
12 | * Return elapsed time based in model attribite |
||
13 | * |
||
14 | * @param string $attribute |
||
15 | * @return jpmurray\LaravelCountdown\Countdown $countdown |
||
|
|||
16 | */ |
||
17 | public function elapsed($attribute) |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * Return until time based in model attribite |
||
29 | * |
||
30 | * @param string $attribute |
||
31 | * @return jpmurray\LaravelCountdown\Countdown $countdown |
||
32 | */ |
||
33 | public function until($attribute) |
||
43 |