| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- <?php
- namespace App\Tests\Fixture\Factory\Access;
- use App\Entity\Access\Access;
- use App\Entity\Billing\AccessBilling;
- use Zenstruck\Foundry\ModelFactory;
- use Zenstruck\Foundry\Proxy;
- /**
- * @extends ModelFactory<AccessBilling>
- *
- * @phpstan-method AccessBilling|Proxy create(array|callable $attributes = [])
- * @phpstan-method static AccessBilling|Proxy createOne(array $attributes = [])
- * @phpstan-method static AccessBilling|Proxy find(object|array|mixed $criteria)
- * @phpstan-method static AccessBilling|Proxy findOrCreate(array $attributes)
- * @phpstan-method static AccessBilling|Proxy first(string $sortedField = 'id')
- * @phpstan-method static AccessBilling|Proxy last(string $sortedField = 'id')
- * @phpstan-method static AccessBilling|Proxy random(array $attributes = [])
- * @phpstan-method static AccessBilling|Proxy randomOrCreate(array $attributes = []))
- * @phpstan-method static AccessBillingRepository|RepositoryProxy repository()
- * @phpstan-method static AccessBilling[]|Proxy[] all()
- * @phpstan-method static AccessBilling[]|Proxy[] createMany(int $number, array|callable $attributes = [])
- * @phpstan-method static AccessBilling[]&Proxy[] createSequence(iterable|callable $sequence)
- * @phpstan-method static AccessBilling[]|Proxy[] findBy(array $attributes)
- * @phpstan-method static AccessBilling[]|Proxy[] randomRange(int $min, int $max, array $attributes = []))
- * @phpstan-method static AccessBilling[]|Proxy[] randomSet(int $number, array $attributes = []))
- */
- class AccessBillingFactory 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 AccessBilling::class;
- }
- }
|