| Total Complexity | 2 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | class Role extends BaseRole implements Concerns\Role\Attribute |
||
| 16 | { |
||
| 17 | use HasFactory; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * {@inheritDoc} |
||
| 21 | */ |
||
| 22 | protected $fillable = [ |
||
| 23 | 'name', |
||
| 24 | 'guard_name', |
||
| 25 | ]; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Return list of role based on the authenticated user. |
||
| 29 | * |
||
| 30 | * @return string[] |
||
| 31 | */ |
||
| 32 | public static function getRoles(): array |
||
| 45 |