| Total Complexity | 1 |
| Total Lines | 18 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | class UserNotification extends ActiveModel |
||
| 21 | { |
||
| 22 | public $casts = [ |
||
| 23 | 'id' => 'integer', |
||
| 24 | 'user_id' => 'integer', |
||
| 25 | 'msg' => 'string', |
||
| 26 | 'uri' => 'string', |
||
| 27 | 'vars' => 'serialize', |
||
| 28 | 'readed' => 'boolean' |
||
| 29 | ]; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Get user object as relation |
||
| 33 | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
||
| 34 | */ |
||
| 35 | public function user() |
||
| 40 |