for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Zenstruck\Foundry\Tests\Fixtures\Factories\ODM;
use Zenstruck\Foundry\ModelFactory;
use Zenstruck\Foundry\Tests\Fixtures\Document\Comment;
use Zenstruck\Foundry\Tests\Fixtures\Document\User;
class CommentFactory extends ModelFactory
{
protected static function getClass(): string
return Comment::class;
}
protected function getDefaults(): array
return [
'user' => new User(self::faker()->userName()),
'body' => self::faker()->sentence(),
];