PdoValue
in package
implements
ExpressionInterface
FinalYes
Class PdoValue represents a $value that should be bound to PDO with exact $type.
For example, it will be useful when you need to bind binary data to BLOB column in DBMS:
[':name' => 'John', ':profile' => new PdoValue($profile, \PDO::PARAM_LOB)]`.
To see possible types, check PDO::PARAM_* constants.
Tags
Table of Contents
Interfaces
- ExpressionInterface
- Interface ExpressionInterface should be used to mark classes, that should be built in a special way.
Properties
Methods
- __construct() : mixed
- PdoValue constructor.
- getType() : int
- getValue() : mixed
Properties
$type
private
int
$type
One of PDO_PARAM_* constants
Tags
$value
private
mixed
$value
Methods
__construct()
PdoValue constructor.
public
__construct(mixed $value, mixed $type) : mixed
Parameters
- $value : mixed
- $type : mixed
getType()
public
getType() : int
Return values
intgetValue()
public
getValue() : mixed