<?php

namespace App\Tests\Fixture\Factory\Network;

use App\Entity\Network\Network;
use Zenstruck\Foundry\ModelFactory;

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