We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Total Complexity | 1 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class ArticleWithEnum extends Model |
||
| 12 | { |
||
| 13 | use CrudTrait; |
||
|
|
|||
| 14 | |||
| 15 | protected $table = 'articles'; |
||
| 16 | protected $fillable = ['user_id', 'content', 'metas', 'tags', 'extras', 'cast_metas', 'cast_tags', 'cast_extras', 'status', 'state', 'style']; |
||
| 17 | protected $casts = [ |
||
| 18 | 'cast_metas' => 'object', |
||
| 19 | 'cast_tags' => 'object', |
||
| 20 | 'cast_extras' => 'object', |
||
| 21 | 'status' => StatusEnum::class, |
||
| 22 | 'state' => StateEnum::class, |
||
| 23 | 'style' => StyleEnum::class, |
||
| 24 | ]; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Get the author for the article. |
||
| 28 | */ |
||
| 29 | public function user() |
||
| 34 |