type === Token::TYPE_KEYWORD) && ($token->keyword === 'RENAME')) { // Checking if it is the beginning of the query. $list->getNextOfTypeAndValue(Token::TYPE_KEYWORD, 'TABLE'); } } /** * @return string */ public function build() { return 'RENAME TABLE ' . RenameOperation::build($this->renames); } }