HEX
Server: Apache
System: Linux WWW 6.1.0-40-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.153-1 (2025-09-20) x86_64
User: web11 (1011)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /var/www/payments-gateway/vendor/doctrine/orm/src/Query/OutputWalker.php
<?php

declare(strict_types=1);

namespace Doctrine\ORM\Query;

use Doctrine\ORM\Query\Exec\SqlFinalizer;

/**
 * Interface for output walkers
 *
 * Output walkers, like tree walkers, can traverse the DQL AST to perform
 * their purpose.
 *
 * The goal of an OutputWalker is to ultimately provide the SqlFinalizer
 * which produces the final, executable SQL statement in a "finalization" phase.
 *
 * It must be possible to use the same SqlFinalizer for Queries with different
 * firstResult/maxResult values. In other words, SQL produced by the
 * output walker should not depend on those values, and any SQL generation/modification
 * specific to them should happen in the finalizer's `\Doctrine\ORM\Query\Exec\SqlFinalizer::createExecutor()`
 * method instead.
 */
interface OutputWalker
{
    public function getFinalizer(AST\DeleteStatement|AST\UpdateStatement|AST\SelectStatement $AST): SqlFinalizer;
}