Column::name()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
namespace PrismX\Generators\Support;
4
5
class Column
6
{
7
    private $modifiers;
8
    private $name;
9
    private $dataType;
10
    private $attributes;
11
12
    public function __construct(string $name, string $dataType = 'string', array $modifiers = [], array $attributes = [])
13
    {
14
        $this->name = $name;
15
        $this->dataType = $dataType;
16
        $this->modifiers = $modifiers;
17
        $this->attributes = $attributes;
18
    }
19
20
    public function name()
21
    {
22
        return $this->name;
23
    }
24
25
    public function dataType()
26
    {
27
        return $this->dataType;
28
    }
29
30
    public function attributes()
31
    {
32
        return $this->attributes;
33
    }
34
35
    public function modifiers()
36
    {
37
        return $this->modifiers;
38
    }
39
}
40