public static function assert($value, $varName) {
        NotNil::assert($value, $varName);
        return !is_string($value) ? Exceptions::InvalidTypeException('string', $varName, $value) : $value;
    }
public static function assert($value, $varName) {
        NotNil::assert($value, $varName);
        return !is_string($value) ? Exceptions::InvalidTypeException('string', $varName, $value) : $value;
    }
public static function assert ( $ value , $ varName ) { NotNil :: assert ( $ value , $ varName ) ; return ! is_string ( $ value ) ? Exceptions :: InvalidTypeException ( 'string' , $ varName , $ value ) : $ value ; }
Asserts if the given value is a string

@param  mixed  $value
@param  string $varName
@return string
@throws InvalidTypeException
@throws NotNilException

@SuppressWarnings("PHPMD.StaticAccess")
Asserts if the given value is a string