Skip to content

Internals Database Query BoundValue

Stefan Crkvenjakov edited this page Oct 7, 2026 · 1 revision

database\query\BoundValue

Framework Internals · Subsystem overview · Developer guide

Source: awt_src/classes/database/query/BoundValue.php · Snapshot 8411f4287706.

DatabaseManager delegates SQL generation to QueryBuilder, execution to IProvider, and result caching to ICache. Schema builders use MySQL DDL and the framework table registry.

BoundValue

Declaration and architectural role

final readonly class BoundValue

Source description (behavioral corrections are recorded in Known discrepancies):

Force a literal value, including the legacy reserved string DEFAULT.

Constants, enum cases, traits and properties

Declarations below preserve visibility, type, default and modifiers exactly. A typed property without an initializer remains uninitialized until its constructor or another method assigns it. Mutable fields belong to this instance unless marked static; readonly fields can be initialized once. Constructor-promoted properties are also listed below.

Member Declaration Purpose or source contract
Constructor-promoted public function __construct(public mixed $value) Initialized from the constructor argument; default expression is evaluated when the argument is omitted.

Method index

Method Signature
__construct public function __construct(public mixed $value)

__construct

Source line 7

public function __construct(public mixed $value);

Parameters

Parameter Type, modifiers and default Purpose
$value public mixed $value Operation input; the exact use, validation and propagation are shown in the implementation trace.

Concrete no-op/default hook: this method performs no work. Override it where the lifecycle or extension contract calls for behavior.

Clone this wiki locally