Conditions | 4 |
Paths | 4 |
Total Lines | 15 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
45 | public function dbTypecast($value) |
||
46 | { |
||
47 | if ($value === null) { |
||
48 | return $value; |
||
49 | } |
||
50 | |||
51 | if ($value instanceof ExpressionInterface) { |
||
52 | return $value; |
||
53 | } |
||
54 | |||
55 | if ($this->getDbType() === MysqlSchema::TYPE_JSON) { |
||
56 | return new JsonExpression($value, $this->getType()); |
||
57 | } |
||
58 | |||
59 | return $this->typecast($value); |
||
60 | } |
||
62 |