Column
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 40
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 10
dl 0
loc 40
c 0
b 0
f 0
wmc 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Doctrine\ORM\Annotation;
6
7
/**
8
 * @Annotation
9
 * @Target({"PROPERTY","ANNOTATION"})
10
 */
11
final class Column implements Annotation
12
{
13
    /** @var string */
14
    public $name;
15
16
    /** @var mixed */
17
    public $type = 'string';
18
19
    /**
20
     * The length for a string column (Applied only for string-based column).
21
     *
22
     * @var int
23
     */
24
    public $length = 255;
25
26
    /**
27
     * The precision for a decimal (exact numeric) column (Applies only for decimal column).
28
     *
29
     * @var int
30
     */
31
    public $precision = 0;
32
33
    /**
34
     * The scale for a decimal (exact numeric) column (Applies only for decimal column).
35
     *
36
     * @var int
37
     */
38
    public $scale = 0;
39
40
    /** @var bool */
41
    public $unique = false;
42
43
    /** @var bool */
44
    public $nullable = false;
45
46
    /** @var array */
47
    public $options = [];
48
49
    /** @var string */
50
    public $columnDefinition;
51
}
52