final class Placeholder
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.

One bind parameter of a catalogued statement, with what it is bound to.

Properties§

public string $token
public int $position
public string|null $name
public ValueDomain|null $value

Methods§

public function __construct(
    public string $token,
    public int $position,
    public string|null $name,
    public ValueDomain|null $value,
)

Parameters

$tokenstringThe parameter exactly as written in the statement
$positionintThe zero-based order of the parameter in the statement
$namestring|nullThe parameter name, for parameters bound by name
$valueValueDomain|nullWhat the parameter is bound to, when a binding was found
public function key(): string

The key the parameter is reported under.

Returns

string
Test cases 1
public function withValue(?ValueDomain $value): self

The same parameter, bound to the given value.

Parameters

Returns

self
Test cases 1
Calls 1

Test cases 30§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 2
Other tests reaching this symbol 28

Relations§

Instantiated in 1
Type declarations 2