Header   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 79
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 79
ccs 15
cts 15
cp 1
rs 10
c 0
b 0
f 0
wmc 6
lcom 0
cbo 1

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 0 4 1
A setName() 0 5 1
A getColumnType() 0 4 1
A setColumnType() 0 5 1
A getDataType() 0 4 1
A setDataType() 0 5 1
1
<?php
2
3
namespace Yandex\Metrica\Analytics\Models;
4
5
use Yandex\Common\Model;
6
7
class Header extends Model
8
{
9
10
    protected $name = null;
11
12
    protected $columnType = null;
13
14
    protected $dataType = null;
15
16
    protected $mappingClasses = [];
17
18
    protected $propNameMap = [];
19
20
    /**
21
     * Retrieve the name property
22
     *
23
     * @return string|null
24
     */
25 3
    public function getName()
26
    {
27 3
        return $this->name;
28
    }
29
30
    /**
31
     * Set the name property
32
     *
33
     * @param string $name
34
     * @return $this
35
     */
36 2
    public function setName($name)
37
    {
38 2
        $this->name = $name;
39 2
        return $this;
40
    }
41
42
    /**
43
     * Retrieve the columnType property
44
     *
45
     * @return string|null
46
     */
47 3
    public function getColumnType()
48
    {
49 3
        return $this->columnType;
50
    }
51
52
    /**
53
     * Set the columnType property
54
     *
55
     * @param string $columnType
56
     * @return $this
57
     */
58 2
    public function setColumnType($columnType)
59
    {
60 2
        $this->columnType = $columnType;
61 2
        return $this;
62
    }
63
64
    /**
65
     * Retrieve the dataType property
66
     *
67
     * @return string|null
68
     */
69 3
    public function getDataType()
70
    {
71 3
        return $this->dataType;
72
    }
73
74
    /**
75
     * Set the dataType property
76
     *
77
     * @param string $dataType
78
     * @return $this
79
     */
80 2
    public function setDataType($dataType)
81
    {
82 2
        $this->dataType = $dataType;
83 2
        return $this;
84
    }
85
}
86