type !== TokenType::Keyword) || ($token->keyword !== 'RENAME')) { return; } // Checking if it is the beginning of the query. $list->getNextOfTypeAndValue(TokenType::Keyword, 'TABLE'); } public function build(): string { return 'RENAME TABLE ' . RenameOperations::buildAll($this->renames); } }