public static function validatePascalCase($string)
    {
        if (SetupHelper::getPascalCase($string) === $string) {
            return (string)$string;
        }

        throw new InvalidArgumentException(
            sprintf(
                'Provided string "%1$s" was not in PascalCase.',
                $string
            )
        );
    }
public static function validatePascalCase($string)
    {
        if (SetupHelper::getPascalCase($string) === $string) {
            return (string)$string;
        }

        throw new InvalidArgumentException(
            sprintf(
                'Provided string "%1$s" was not in PascalCase.',
                $string
            )
        );
    }
public static function validatePascalCase ( $ string ) { if ( SetupHelper :: getPascalCase ( $ string ) === $ string ) { return ( string ) $ string ; } throw new InvalidArgumentException ( sprintf ( 'Provided string "%1$s" was not in PascalCase.' , $ string ) ) ; }
Verify that a string is in PascalCase or throw an Exception.

@since 0.1.0

@param string $string The string to validate.

@return string The validated string.
@throws InvalidArgumentException If the string is not in PascalCase.
Verify that a string is in PascalCase or throw an Exception .