private function quoteReservedWord(string $word): string
    {
        if (null === $this->platformReservedWord) {
            try {
                $this->platformReservedWord = $this->connection->getDatabasePlatform()->getReservedKeywordsList();
            } catch (DBALException $exception) {
                // Add the not support key word list, if the platform has not a list of keywords.
                $this->platformReservedWord = new NotSupportedKeywordList();
            }
        }

        if (false === $this->platformReservedWord->isKeyword($word)) {
            return $word;
        }

        return $this->connection->quoteIdentifier($word);
    }
private function quoteReservedWord(string $word): string
    {
        if (null === $this->platformReservedWord) {
            try {
                $this->platformReservedWord = $this->connection->getDatabasePlatform()->getReservedKeywordsList();
            } catch (DBALException $exception) {
                // Add the not support key word list, if the platform has not a list of keywords.
                $this->platformReservedWord = new NotSupportedKeywordList();
            }
        }

        if (false === $this->platformReservedWord->isKeyword($word)) {
            return $word;
        }

        return $this->connection->quoteIdentifier($word);
    }
private function quoteReservedWord ( string $ word ) : string { if ( null === $ this -> platformReservedWord ) { try { $ this -> platformReservedWord = $ this -> connection -> getDatabasePlatform ( ) -> getReservedKeywordsList ( ) ; } catch ( DBALException $ exception ) { // Add the not support key word list, if the platform has not a list of keywords. $ this -> platformReservedWord = new NotSupportedKeywordList ( ) ; } } if ( false === $ this -> platformReservedWord -> isKeyword ( $ word ) ) { return $ word ; } return $ this -> connection -> quoteIdentifier ( $ word ) ; }
Quote the reserved platform key word.

@param string $word The key word.

@return string
Quote the reserved platform key word .