engelsystem/db/factories/Shifts/ScheduleFactory.php

27 lines
760 B
PHP
Raw Normal View History

2021-07-10 00:59:20 +02:00
<?php
declare(strict_types=1);
2021-07-10 00:59:20 +02:00
namespace Database\Factories\Engelsystem\Models\Shifts;
use Engelsystem\Models\Shifts\Schedule;
use Illuminate\Database\Eloquent\Factories\Factory;
class ScheduleFactory extends Factory
{
/** @var string */
protected $model = Schedule::class; // phpcs:ignore
2021-07-10 00:59:20 +02:00
public function definition(): array
2021-07-10 00:59:20 +02:00
{
return [
2022-11-26 13:36:47 +01:00
'name' => $this->faker->unique()->words(4, true),
2021-07-10 00:59:20 +02:00
'url' => $this->faker->parse('https://{{safeEmailDomain}}/{{slug}}.xml'),
'shift_type' => $this->faker->numberBetween(1, 5),
'needed_from_shift_type' => $this->faker->boolean(.2),
2021-07-10 00:59:20 +02:00
'minutes_before' => 15,
'minutes_after' => 15,
];
}
}