| Total Complexity | 4 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class Comment extends Model |
||
| 9 | { |
||
| 10 | const STATUS_ENABLE = 1; |
||
| 11 | const STATUS_DISABLE = 0; |
||
| 12 | |||
| 13 | protected $guarded = []; |
||
| 14 | |||
| 15 | public function user() |
||
| 18 | } |
||
| 19 | |||
| 20 | public function replyUser() |
||
| 21 | { |
||
| 22 | return $this->belongsTo('App\Model\Admin\User', 'reply_user_id'); |
||
| 23 | } |
||
| 24 | |||
| 25 | public function adminUser() |
||
| 26 | { |
||
| 27 | return $this->belongsTo('App\Model\Admin\AdminUser', 'user_id'); |
||
| 28 | } |
||
| 29 | |||
| 30 | public function entity() |
||
| 33 | } |
||
| 34 | } |
||
| 35 |