Total Complexity | 5 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
8 | class Info extends Model |
||
9 | { |
||
10 | protected $guarded = []; |
||
11 | protected $appends = [ |
||
12 | 'startTime', |
||
13 | ]; |
||
14 | |||
15 | 1 | public function getStartTimeAttribute() |
|
16 | { |
||
17 | 1 | return new Carbon($this->attributes['startTime']); |
|
18 | } |
||
19 | |||
20 | 1 | public function getSessionIdAttribute() |
|
21 | { |
||
22 | 1 | return str_replace($this->accountId, '', $this->engagementId); |
|
23 | } |
||
24 | |||
25 | 1 | public function getMinutesAttribute() |
|
28 | } |
||
29 | |||
30 | 1 | public function getSecondsAttribute() |
|
33 | } |
||
34 | |||
35 | 1 | public function getHoursAttribute() |
|
40 |
Checks if undeclared accessed properties appear in database migrations and if the creating migration is correct.