Total Complexity | 3 |
Total Lines | 39 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
25 | final class PdoValue implements ExpressionInterface |
||
26 | { |
||
27 | /** |
||
28 | * @var mixed |
||
29 | */ |
||
30 | private $value; |
||
31 | /** |
||
32 | * @var int One of PDO_PARAM_* constants |
||
33 | * @see https://www.php.net/manual/en/pdo.constants.php |
||
34 | */ |
||
35 | private $type; |
||
36 | |||
37 | |||
38 | /** |
||
39 | * PdoValue constructor. |
||
40 | * |
||
41 | * @param $value |
||
42 | * @param $type |
||
43 | */ |
||
44 | public function __construct($value, $type) |
||
45 | { |
||
46 | $this->value = $value; |
||
47 | $this->type = $type; |
||
48 | } |
||
49 | |||
50 | /** |
||
51 | * @return mixed |
||
52 | */ |
||
53 | public function getValue() |
||
54 | { |
||
55 | return $this->value; |
||
56 | } |
||
57 | |||
58 | /** |
||
59 | * @return int |
||
60 | */ |
||
61 | public function getType() |
||
64 | } |
||
65 | } |
||
66 |