<?php

namespace App\Tests\Fixture\Factory\Organization;

use App\Entity\Organization\Parameters;
use Zenstruck\Foundry\ModelFactory;
use Zenstruck\Foundry\Proxy;
use Zenstruck\Foundry\RepositoryProxy;

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