| Total Complexity | 6 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Coverage | 83.33% |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | class Info extends Model |
||
| 14 | { |
||
| 15 | protected $guarded = []; |
||
| 16 | protected $appends = [ |
||
| 17 | 'startTime', |
||
| 18 | ]; |
||
| 19 | |||
| 20 | 1 | public function getStartTimeAttribute() |
|
| 23 | } |
||
| 24 | |||
| 25 | public function getEndTimeAttribute() |
||
| 28 | } |
||
| 29 | |||
| 30 | 1 | public function getSessionIdAttribute() |
|
| 31 | { |
||
| 32 | 1 | return str_replace($this->accountId, '', $this->engagementId); |
|
| 33 | } |
||
| 34 | |||
| 35 | 1 | public function getMinutesAttribute() |
|
| 38 | } |
||
| 39 | |||
| 40 | 1 | public function getSecondsAttribute() |
|
| 43 | } |
||
| 44 | |||
| 45 | 1 | public function getHoursAttribute() |
|
| 50 |
Checks if undeclared accessed properties appear in database migrations and if the creating migration is correct.