Completed
Pull Request — master (#243)
by
unknown
03:10
created

Dimension::getDirectId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
namespace Yandex\Metrica\Stat\Models;
4
5
use Yandex\Common\Model;
6
7
class Dimension extends Model
8
{
9
10
    protected $id = null;
11
12
    protected $directId = null;
13
14
    protected $name = null;
15
16
    protected $mappingClasses = [];
17
18
    protected $propNameMap = [
19
        'direct_id' => 'directId'
20
    ];
21
22
    /**
23
     * Retrieve the id property
24
     *
25
     * @return string|null
26
     */
27 6
    public function getId()
28
    {
29 6
        return $this->id;
30
    }
31
32
    /**
33
     * Set the id property
34
     *
35
     * @param string $id
36
     * @return $this
37
     */
38 4
    public function setId($id)
39
    {
40 4
        $this->id = $id;
41 4
        return $this;
42
    }
43
44
    /**
45
     * Retrieve the directId property
46
     *
47
     * @return string|null
48
     */
49 1
    public function getDirectId()
50
    {
51 1
        return $this->directId;
52
    }
53
    
54
    /**
55
     * Set the directId property
56
     *
57
     * @param string $directId
58
     * @return $this
59
     */
60 1
    public function setDirectId($directId)
61
    {
62 1
        $this->directId = $directId;
63 1
        return $this;
64
    }
65
    
66
    /**
67
     * Retrieve the name property
68
     *
69
     * @return string|null
70
     */
71 6
    public function getName()
72
    {
73 6
        return $this->name;
74
    }
75
76
    /**
77
     * Set the name property
78
     *
79
     * @param string $name
80
     * @return $this
81
     */
82 4
    public function setName($name)
83
    {
84 4
        $this->name = $name;
85 4
        return $this;
86
    }
87
}
88