1 | <?php |
||
2 | |||
3 | declare(strict_types=1); |
||
4 | |||
5 | namespace Cycle\Database\Schema\Attribute; |
||
6 | |||
7 | #[\Attribute(\Attribute::TARGET_PROPERTY)] |
||
8 | class ColumnAttribute |
||
9 | { |
||
10 | /** |
||
11 | * @param non-empty-string[]|null $types List of column types that support this attribute. |
||
0 ignored issues
–
show
Documentation
Bug
introduced
by
![]() |
|||
12 | * Empty list means all types. |
||
13 | */ |
||
14 | public function __construct( |
||
15 | public ?array $types = null, |
||
16 | ) {} |
||
17 | } |
||
18 |