<?php

namespace App\Tests\Fixture\Factory\Education;

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

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