<?php

namespace App\Tests\Fixture\Factory\Education;

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

/**
 * @extends ModelFactory<Education>
 *
 * @phpstan-method        Education|Proxy create(array|callable $attributes = [])
 * @phpstan-method static Education|Proxy createOne(array $attributes = [])
 * @phpstan-method static Education|Proxy find(object|array|mixed $criteria)
 * @phpstan-method static Education|Proxy findOrCreate(array $attributes)
 * @phpstan-method static Education|Proxy first(string $sortedField = 'id')
 * @phpstan-method static Education|Proxy last(string $sortedField = 'id')
 * @phpstan-method static Education|Proxy random(array $attributes = [])
 * @phpstan-method static Education|Proxy randomOrCreate(array $attributes = []))
 * @phpstan-method static EducationRepository|RepositoryProxy repository()
 * @phpstan-method static Education[]|Proxy[] all()
 * @phpstan-method static Education[]|Proxy[] createMany(int $number, array|callable $attributes = [])
 * @phpstan-method static Education[]&Proxy[] createSequence(iterable|callable $sequence)
 * @phpstan-method static Education[]|Proxy[] findBy(array $attributes)
 * @phpstan-method static Education[]|Proxy[] randomRange(int $min, int $max, array $attributes = []))
 * @phpstan-method static Education[]|Proxy[] randomSet(int $number, array $attributes = []))
 */
class EducationFactory 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 Education::class;
    }
}
