<?php

namespace App\Tests\Fixture\Factory\Organization;

use App\Entity\Education\EducationCategory;
use App\Entity\Organization\Subdomain;
use Zenstruck\Foundry\ModelFactory;

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