Completed
Push — 2.x ( 19e42d...43f08f )
by Aleksei
17s queued 15s
created

ColumnAttribute   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 10
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
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
The doc comment non-empty-string[]|null at position 0 could not be parsed: Unknown type name 'non-empty-string' at position 0 in non-empty-string[]|null.
Loading history...
12
     *        Empty list means all types.
13
     */
14
    public function __construct(
15
        public ?array $types = null,
16
    ) {
17
    }
18
}
19