Completed
Push — master ( 735ffd...9b092c )
by Anton
8s
created

Dimension::getId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 4
Ratio 100 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 1 Features 0
Metric Value
c 1
b 1
f 0
dl 4
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
3
namespace Yandex\Metrica\Stat\Models;
4
5
use Yandex\Common\Model;
6
7 View Code Duplication
class Dimension extends Model
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
8
{
9
10
    protected $id = null;
11
12
    protected $name = null;
13
14
    protected $mappingClasses = [];
15
16
    protected $propNameMap = [];
17
18
    /**
19
     * Retrieve the id property
20
     *
21
     * @return string|null
22
     */
23 6
    public function getId()
24
    {
25 6
        return $this->id;
26
    }
27
28
    /**
29
     * Set the id property
30
     *
31
     * @param string $id
32
     * @return $this
33
     */
34 4
    public function setId($id)
35
    {
36 4
        $this->id = $id;
37 4
        return $this;
38
    }
39
40
    /**
41
     * Retrieve the name property
42
     *
43
     * @return string|null
44
     */
45 6
    public function getName()
46
    {
47 6
        return $this->name;
48
    }
49
50
    /**
51
     * Set the name property
52
     *
53
     * @param string $name
54
     * @return $this
55
     */
56 4
    public function setName($name)
57
    {
58 4
        $this->name = $name;
59 4
        return $this;
60
    }
61
}
62