<?php

namespace App\Tests\Fixture\Factory\Billing;

use App\Entity\Billing\ResidenceArea;
use Zenstruck\Foundry\ModelFactory;

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