Completed
Pull Request — master (#159)
by
unknown
09:00
created

Condition::getType()   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 0 Features 1
Metric Value
c 1
b 0
f 1
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\Management\Models;
4
5
use Yandex\Common\Model;
6
7 View Code Duplication
class Condition 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 $type = null;
11
12
    protected $url = null;
13
14
    protected $mappingClasses = [];
15
16
    protected $propNameMap = [];
17
18
    /**
19
     * Retrieve the type property
20
     *
21
     * @return string|null
22
     */
23 5
    public function getType()
24
    {
25 5
        return $this->type;
26
    }
27
28
    /**
29
     * Set the type property
30
     *
31
     * @param string $type
32
     * @return $this
33
     */
34 1
    public function setType($type)
35
    {
36 1
        $this->type = $type;
37 1
        return $this;
38
    }
39
40
    /**
41
     * Retrieve the url property
42
     *
43
     * @return string|null
44
     */
45 5
    public function getUrl()
46
    {
47 5
        return $this->url;
48
    }
49
50
    /**
51
     * Set the url property
52
     *
53
     * @param string $url
54
     * @return $this
55
     */
56 1
    public function setUrl($url)
57
    {
58 1
        $this->url = $url;
59 1
        return $this;
60
    }
61
}
62