* @category Class * @license https://www.gnu.org/licenses/lgpl-3.0.en.html GNU Lesser General Public License * @link www.splendidbear.org * @since 2026. 04. 21. * * @extends PersistentProxyObjectFactory */ class ContactMessageFactory extends PersistentProxyObjectFactory { protected function defaults(): array { return [ 'name' => self::faker()->name(), 'email' => self::faker()->safeEmail(), 'content' => self::faker()->paragraph(3), 'consent' => true, 'ipAddress' => self::faker()->ipv4(), ]; } public static function class(): string { return ContactMessage::class; } public function withoutConsent(): self { return $this->with(['consent' => false]); } public function anonymous(): self { return $this->with(['ipAddress' => null]); } }