| Total Complexity | 1 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 8 | class RoleFactory extends Factory |
||
| 9 | { |
||
| 10 | public const TYPES = ['user', 'client']; |
||
| 11 | public const NAMES = ['Employee', 'Administrator', 'Team Leader']; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * The name of the factory's corresponding model. |
||
| 15 | * |
||
| 16 | * @var string |
||
| 17 | */ |
||
| 18 | protected $model = Role::class; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Define the model's default state. |
||
| 22 | * |
||
| 23 | * @return array |
||
| 24 | */ |
||
| 25 | public function definition(): array |
||
| 35 |