Final Class Yiisoft\Db\Pgsql\Column\BitColumn
| Inheritance | Yiisoft\ |
|---|
Public Methods
| Method | Description | Defined By |
|---|---|---|
| dbTypecast() | Yiisoft\ |
|
| phpTypecast() | Yiisoft\ |
Constants
| Constant | Value | Description | Defined By |
|---|---|---|---|
| DEFAULT_TYPE | \ |
Yiisoft\ |
Method Details
| public string|\ | ||
| $value | mixed | |
public function dbTypecast(mixed $value): string|ExpressionInterface|null
{
return BitColumnInternal::dbTypecast($value, $this->getSize());
}
| public ?int phpTypecast ( mixed $value ) | ||
| $value | mixed | |
public function phpTypecast(mixed $value): ?int
{
/** @var int|string|null $value */
if (is_string($value)) {
/** @var int */
return bindec($value);
}
return $value;
}
User Contributed Notes
Leave a comment
Join the conversation to share a note.