<?php

namespace App\Tests\Fixture\Factory\Education;

use App\Entity\Education\EducationTiming;
use Zenstruck\Foundry\ModelFactory;
use Zenstruck\Foundry\Proxy;

/**
 * @extends ModelFactory<EducationTiming>
 *
 * @phpstan-method        EducationTiming|Proxy create(array|callable $attributes = [])
 * @phpstan-method static EducationTiming|Proxy createOne(array $attributes = [])
 * @phpstan-method static EducationTiming|Proxy find(object|array|mixed $criteria)
 * @phpstan-method static EducationTiming|Proxy findOrCreate(array $attributes)
 * @phpstan-method static EducationTiming|Proxy first(string $sortedField = 'id')
 * @phpstan-method static EducationTiming|Proxy last(string $sortedField = 'id')
 * @phpstan-method static EducationTiming|Proxy random(array $attributes = [])
 * @phpstan-method static EducationTiming|Proxy randomOrCreate(array $attributes = []))
 * @phpstan-method static EducationTimingRepository|RepositoryProxy repository()
 * @phpstan-method static EducationTiming[]|Proxy[] all()
 * @phpstan-method static EducationTiming[]|Proxy[] createMany(int $number, array|callable $attributes = [])
 * @phpstan-method static EducationTiming[]&Proxy[] createSequence(iterable|callable $sequence)
 * @phpstan-method static EducationTiming[]|Proxy[] findBy(array $attributes)
 * @phpstan-method static EducationTiming[]|Proxy[] randomRange(int $min, int $max, array $attributes = []))
 * @phpstan-method static EducationTiming[]|Proxy[] randomSet(int $number, array $attributes = []))
 */
class EducationTimingFactory extends ModelFactory
{
    /**
     * @see https://github.com/zenstruck/foundry#factories-as-services
     */
    public function __construct()
    {
        parent::__construct();
    }

    /**
     * @see https://github.com/zenstruck/foundry#model-factories
     *
     * @todo add your default values here
     */
    protected function getDefaults(): array
    {
        return [];
    }

    /**
     * @see https://github.com/zenstruck/foundry#initialization
     */
    protected function initialize(): self
    {
        return $this
            // ->afterInstantiate(function(Post $post) {})
        ;
    }

    protected static function getClass(): string
    {
        return EducationTiming::class;
    }
}
