<?php

namespace App\Tests\Fixture\Factory\Core;

use App\Entity\Core\ContactPoint;
use Zenstruck\Foundry\ModelFactory;
use Zenstruck\Foundry\Proxy;

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