new EasyAddressFieldType([ 'name' => $typeName, 'description' => 'This entity has all the EasyAddressField properties', 'fields' => fn () => [ 'name' => Type::string(), 'street' => Type::string(), 'street2' => Type::string(), 'postalCode' => Type::string(), 'city' => Type::string(), 'state' => Type::string(), 'country' => Type::string(), 'latitude' => Type::float(), 'longitude' => Type::float(), ], ])); } /** @param EasyAddressFieldField|null $context */ public static function getName(mixed $context = null): string { return $context->handle.'_EasyAddressField'; } }