Total Complexity | 4 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
8 | class MessagingInfo extends Model |
||
9 | { |
||
10 | protected $guarded = []; |
||
11 | protected $appends = [ |
||
12 | 'startTime', |
||
13 | ]; |
||
14 | |||
15 | public function getStartTimeAttribute() |
||
18 | } |
||
19 | |||
20 | public function getMinutesAttribute() |
||
21 | { |
||
22 | return round(($this->attributes['duration'] / 1000) / 60, 2); |
||
23 | } |
||
24 | |||
25 | public function getSecondsAttribute() |
||
26 | { |
||
27 | return $this->attributes['duration'] / 1000; |
||
28 | } |
||
29 | |||
30 | public function getHoursAttribute() |
||
33 | } |
||
34 | } |
||
35 |