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

@param  mixed  $value
@param  string $varName
@return string|null
@throws InvalidTypeException

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