<?php

namespace App\Tests\Fixture\Factory\Billing;

use App\Entity\Billing\BillingSetting;
use Zenstruck\Foundry\ModelFactory;
use Zenstruck\Foundry\Proxy;

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