| Total Complexity | 2 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class PeriodicSentEntryFactory extends Factory |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * The name of the factory's corresponding model. |
||
| 16 | * |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | protected $model = PeriodicSentEntry::class; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Define the model's default state. |
||
| 23 | * |
||
| 24 | * @return array |
||
| 25 | */ |
||
| 26 | 1 | public function definition() |
|
| 27 | { |
||
| 28 | 1 | return [ |
|
| 29 | 1 | 'group' => 'default', |
|
| 30 | 1 | 'sent_at' => $this->faker->dateTime(), |
|
| 31 | 1 | ]; |
|
| 32 | } |
||
| 33 | |||
| 34 | 1 | public function group(string $group = 'default') |
|
| 38 | 1 | ]); |
|
| 39 | } |
||
| 41 |