0 follower

Final Class Yiisoft\Db\Pgsql\Column\BinaryColumn

InheritanceYiisoft\Db\Pgsql\Column\BinaryColumn » Yiisoft\Db\Schema\Column\BinaryColumn

Public Methods

Hide inherited methods

Method Description Defined By
phpTypecast() Yiisoft\Db\Pgsql\Column\BinaryColumn

Method Details

Hide inherited methods

phpTypecast() public method

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);
}