protected function getVarcharSQLDeclarationSnippet($length, $fixed)
    {
        if (!is_int($length) || (is_int($length) && ($length <= 0))) {
            throw PlatformException::invalidVarcharLength();
        }

        if (!is_bool($fixed)) {
            throw PlatformException::invalidVarcharFixedFlag();
        }

        if ($fixed) {
            return 'CHAR('.$length.')';
        }

        return 'VARCHAR('.$length.')';
    }
protected function getVarcharSQLDeclarationSnippet($length, $fixed)
    {
        if (!is_int($length) || (is_int($length) && ($length <= 0))) {
            throw PlatformException::invalidVarcharLength();
        }

        if (!is_bool($fixed)) {
            throw PlatformException::invalidVarcharFixedFlag();
        }

        if ($fixed) {
            return 'CHAR('.$length.')';
        }

        return 'VARCHAR('.$length.')';
    }
protected function getVarcharSQLDeclarationSnippet ( $ length , $ fixed ) { if ( ! is_int ( $ length ) || ( is_int ( $ length ) && ( $ length <= 0 ) ) ) { throw PlatformException :: invalidVarcharLength ( ) ; } if ( ! is_bool ( $ fixed ) ) { throw PlatformException :: invalidVarcharFixedFlag ( ) ; } if ( $ fixed ) { return 'CHAR(' . $ length . ')' ; } return 'VARCHAR(' . $ length . ')' ; }
Gets the varchar SQL declaration snippet.

@param integer $length The varchar length.
@param boolean $fixed  TRUE if the varchar is fixed else FALSE.

@throws \Fridge\DBAL\Exception\PlatformException If the length is not a positive integer or if the fixed flag
is not a boolean.

@return string The varchar SQL declaration snippet.
Gets the varchar SQL declaration snippet .