| Total Complexity | 4 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class Thread extends Model |
||
| 8 | { |
||
| 9 | protected $table = 'threads'; |
||
| 10 | |||
| 11 | protected $dates = [ |
||
| 12 | 'created_at', |
||
| 13 | 'updated_at' |
||
| 14 | ]; |
||
| 15 | |||
| 16 | public function topic() { |
||
| 18 | } |
||
| 19 | |||
| 20 | public function user() { |
||
| 21 | return $this->belongsTo('App\User'); |
||
| 22 | } |
||
| 23 | |||
| 24 | public function trimStr(string $string) { |
||
| 27 | } |
||
| 28 | } |
||
| 30 |