<?php

declare(strict_types=1);

/*
 * This file is part of the Ferienpass package.
 *
 * (c) Richard Henkenjohann <richard@ferienpass.online>
 *
 * For more information visit the project website <https://ferienpass.online>
 * or the documentation under <https://docs.ferienpass.online>.
 */

namespace Ferienpass\CoreBundle\Fixtures\Factory;

use Ferienpass\CoreBundle\Entity\Participant\BaseParticipant;

use function Zenstruck\Foundry\faker;

use Zenstruck\Foundry\Object\Instantiator;
use Zenstruck\Foundry\ObjectFactory;

class ParticipantFactory extends ObjectFactory
{
    public static function class(): string
    {
        return BaseParticipant::class;
    }

    protected function defaults(): array
    {
        return [
            'firstname' => faker()->firstName(),
            'lastname' => faker()->name(),
        ];
    }

    protected function initialize(): static
    {
        return $this->instantiateWith(Instantiator::withoutConstructor());
    }
}
