packages/sql-semantics-postgres/src/Model/Statement/Reference/Missing/MissingInput.php

1<?php
2
3declare(strict_types=1);
4
5namespace SqlSemantics\Platform\PostgreSql\Model\Statement\Reference\Missing;
6
7/**
8 * An input the analysis context does not contain and a fact therefore depends on.
9 *
10 * @visibility public
11 * @example Naming the undeclared relation behind a dependent fact
12 *     $operation = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('SELECT a FROM t');
13 *     $operation->field('a')->type->missing[0]->describe() // => 'the declaration of relation t'
14 */
15interface MissingInput
16{
17    /**
18     * Describes the missing input for a person.
19     */
20    public function describe(): string;
21}
22