Final Class Yiisoft\Db\Pgsql\Column\BinaryColumn
| Inheritance | Yiisoft\Db\Pgsql\Column\BinaryColumn » Yiisoft\Db\Schema\Column\BinaryColumn |
|---|
Public Methods
| Method | Description | Defined By |
|---|---|---|
| phpTypecast() | Yiisoft\Db\Pgsql\Column\BinaryColumn |
Method Details
| public \Yiisoft\Db\Schema\Data\StringableStream|string|null phpTypecast ( mixed $value ) | ||
| $value | mixed | |
public function phpTypecast(mixed $value): StringableStream|string|null
{
if (is_string($value) && str_starts_with($value, '\x')) {
/** @var string */
return hex2bin(substr($value, 2));
}
return parent::phpTypecast($value);
}
Signup or Login in order to comment.