-
Notifications
You must be signed in to change notification settings - Fork 5
Parameters
Marijn van Wezel edited this page Dec 15, 2022
·
3 revisions
You can use parameters as placeholders for values to be supplied at execution time. A parameter can be used like any other expression. You can use parameters with like so:
$parameter = Query::parameter("foobar");
// Equivalently
$parameter = parameter("foobar");
If you do not want to think about what name to give to your parameters, you may omit the name and let the package generate a name for you:
$parameter = parameter();
You can retrieve the name again using the getParameter
method:
$parameter = parameter();
$generatedName = $parameter->getParameter();