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

ComparisonMetrics::setB()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 5
Ratio 100 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 1 Features 0
Metric Value
c 1
b 1
f 0
dl 5
loc 5
ccs 3
cts 3
cp 1
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
crap 1
1
<?php
2
3
namespace Yandex\Metrica\Stat\Models;
4
5
use Yandex\Common\Model;
6
7 View Code Duplication
class ComparisonMetrics 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 $a = null;
11
12
    protected $b = null;
13
14
    protected $mappingClasses = [];
15
16
    protected $propNameMap = [];
17
18
    /**
19
     * Retrieve the a property
20
     *
21
     * @return array|null
22
     */
23 4
    public function getA()
24
    {
25 4
        return $this->a;
26
    }
27
28
    /**
29
     * Set the a property
30
     *
31
     * @param array $a
32
     * @return $this
33
     */
34 2
    public function setA($a)
35
    {
36 2
        $this->a = $a;
37 2
        return $this;
38
    }
39
40
    /**
41
     * Retrieve the b property
42
     *
43
     * @return array|null
44
     */
45 4
    public function getB()
46
    {
47 4
        return $this->b;
48
    }
49
50
    /**
51
     * Set the b property
52
     *
53
     * @param array $b
54
     * @return $this
55
     */
56 2
    public function setB($b)
57
    {
58 2
        $this->b = $b;
59 2
        return $this;
60
    }
61
}
62