<?php

namespace App\Tests\Fixture\Factory\Education;

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

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