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

One bind parameter found in a statement.

Properties§

public string $token
public int $position
public string|null $name = null

Methods§

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

Parameters

$tokenstringThe parameter exactly as written, such as `?` or `:id`
$positionintThe zero-based order of the parameter within the statement
$namestring|nullThe parameter name, for `:name` and `$1` style parameters
public function isPositional(): bool

Whether the parameter is bound by position rather than by name.

Returns

bool
Test cases 1
public function key(): string

The key a report uses for the parameter.

Returns

string
Test cases 1

Test cases 10§

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 8

Relations§

Instantiated in 1