Database/src/PostgreSql/Columns/Bit.php

23 lines
372 B
PHP
Raw Normal View History

2024-11-08 16:33:44 +01:00
<?php
namespace Nest\Database\PostgreSql\Columns;
use Stringable;
/**
* PostgreSQL fixed-length bit string column type.
*/
class Bit implements Stringable
{
/**
* @param int $size Size of the fixed-length bit string column type.
*/
public function __construct(protected int $size)
{}
public function __toString(): string
{
return "bit($this->size)";
}
}