classPlaceholderRef
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 $tokenpublic int $positionpublic string|null $name = nullMethods§
public function __construct(
public string $token,
public int $position,
public string|null $name = null,
)Parameters
$token | string | The parameter exactly as written, such as `?` or `:id` |
$position | int | The zero-based order of the parameter within the statement |
$name | string|null | The parameter name, for `:name` and `$1` style parameters |
public function isPositional(): boolWhether the parameter is bound by position rather than by name.
Returns
boolTest cases 1
public function key(): stringThe key a report uses for the parameter.
Returns
stringTest cases 1
Test cases 10§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.