<?php

namespace Database\Factories\Claim;

use Illuminate\Database\Eloquent\Factories\Factory;

/**
 * @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Model>
 */
class BeneficiaryFactory extends Factory {
    /**
     * Define the model's default state.
     *
     * @return array<string, mixed>
     */
    public function definition(): array {
        return [
            'first_name' => $this->faker->firstName(),
            'middle_name' => $this->faker->optional(0.3)->firstName(),
            'surname' => $this->faker->lastName(),
            'address_line_1' => $this->faker->buildingNumber() . ' ' . $this->faker->streetName(),
            'address_line_3' => $this->faker->optional(0.2)->city(),
            'postcode' => 'SK7 6BG',
            'email' => $this->faker->optional(0.7)->safeEmail(),
            'telephone' => $this->faker->optional(0.6)->phoneNumber(),
        ];
    }
}
