for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Yiisoft\Db\Command;
use Yiisoft\Db\Expression\ExpressionInterface;
/**
* Represents a parameter used in building an SQL statement.
*
* It can be used to represent a placeholder in an SQL statement, and can be bound to a specific value when the
* statement is executed.
* It can also represent a column name or table name, depending on the context in which it's
* used. The class provides methods for specifying the parameter name, value, as well as methods for quoting and
* escaping the parameter value to ensure that it's handled by the database.
*/
final class Param implements ParamInterface, ExpressionInterface
{
public function __construct(private mixed $value, private int $type)
}
public function getType(): int
return $this->type;
public function getValue(): mixed
return $this->value;