Column   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Importance

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

5 Methods

Rating   Name   Duplication   Size   Complexity  
A attributes() 0 3 1
A modifiers() 0 3 1
A name() 0 3 1
A __construct() 0 6 1
A dataType() 0 3 1
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