Automattic\WooCommerce\Vendor\League\ISO3166

Guards::guardAgainstInvalidNamepublic staticWC 1.0

Assert that input is not an empty string.

Method of the class: Guards{}

No Hooks.

Returns

null. Nothing (null).

Usage

$result = Guards::guardAgainstInvalidName( $name ): void;
$name(string) (required)
.

Guards::guardAgainstInvalidName() code WC 10.3.6

public static function guardAgainstInvalidName(string $name): void
{
    if ('' === trim($name)) {
        throw new DomainException('Expected string, got empty string');
    }
}