<?php

namespace App\Tests\Fixture\Factory\Mobyt;

use App\ApiResources\Mobyt\MobytUserStatus;
use Zenstruck\Foundry\ModelFactory;
use Zenstruck\Foundry\Proxy;
use Zenstruck\Foundry\RepositoryProxy;

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