19 lines
558 B
PHP
19 lines
558 B
PHP
<?php
|
|
|
|
namespace Ulmus\Attribute\Property\Field;
|
|
|
|
#[\Attribute(\Attribute::TARGET_PROPERTY)]
|
|
class Smallint extends \Ulmus\Attribute\Property\Field
|
|
{
|
|
public function __construct(
|
|
public ? string $name = null,
|
|
public ? string $type = "smallint",
|
|
public null|int|string $length = null,
|
|
public ? int $precision = null,
|
|
public array $attributes = [],
|
|
public bool $nullable = false,
|
|
public mixed $default = null,
|
|
public bool $readonly = false,
|
|
public string $description = "",
|
|
) {}
|
|
} |