for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* YIKES Inc. Easy Mailchimp Forms Plugin.
*
* @package Yikes\EasyForms
* @author Freddie Mixell
* @license GPL2
*/
namespace YIKES\EasyForms\Exception;
* Class NoDefault
* @since %VERSION%
* @package Yikes\EasyForms\Exception
class NoDefault extends \LogicException implements Exception {
* Create a new exception when a field needs a default.
* @param string $slug The field slug that needs a default value.
* @return static
public static function default_value( $slug ) {
$message = sprintf(
/* translators: %s refers to a field's slug */
__( 'The field "%s" must have a default value.', 'yikes-inc-easy-mailchimp-extender' ),
$slug
);
return new static( $message );
}