| Total Complexity | 2 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class TrackedNotificationFactory extends Factory |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * The name of the factory's corresponding model. |
||
| 14 | * |
||
| 15 | * @var string |
||
| 16 | */ |
||
| 17 | protected $model = TrackedNotification::class; |
||
| 18 | |||
| 19 | public function definition(): array |
||
| 20 | { |
||
| 21 | $resetPasswordNotification = new CertifiedNotification(); |
||
| 22 | |||
| 23 | return [ |
||
| 24 | 'class' => $resetPasswordNotification::class, |
||
| 25 | 'data' => serialize($resetPasswordNotification), |
||
| 26 | ]; |
||
| 27 | } |
||
| 28 | |||
| 29 | public function forNotification(Notification $notification = null): static |
||
| 34 | ]); |
||
| 35 | } |
||
| 37 |