for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Zenstruck\Foundry\Tests\Fixtures\Factories;
use Zenstruck\Foundry\ModelFactory;
use Zenstruck\Foundry\Tests\Fixtures\Entity\Contact;
/**
* @author Kevin Bond <[email protected]>
*/
final class ContactFactory extends ModelFactory
{
protected static function getClass(): string
return Contact::class;
}
protected function getDefaults(): array
return [
'name' => 'Sally',
'address' => AddressFactory::new(),
];