- Added description to most attributes

This commit is contained in:
Dave Mc Nicoll committed 2024-05-27 18:09:22 +00:00
1 parent e37eeb85f1
commit 2de3139c80
32 files changed
+48 -8

No files matched your search

+9 -4
View File
@@ -5,8 +5,13 @@ namespace Ulmus\Attribute\Property\Field;
#[\Attribute(\Attribute::TARGET_PROPERTY)]
class Time extends \Ulmus\Attribute\Property\Field
{
public function __construct(? string $type = "time", ? int $length = null)
{
parent::__construct($type, $length);
}
public function __construct(
public ? string $name = null,
public ? string $type = "time",
public array $attributes = [],
public bool $nullable = false,
public mixed $default = null,
public bool $readonly = false,
public string $description = "",
) {}
}