Completed
Pull Request — master (#162)
by
unknown
06:39
created

GetHostStatsResponse::setHost()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 6
Ratio 100 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 3
c 1
b 0
f 1
nc 1
nop 1
dl 6
loc 6
ccs 0
cts 5
cp 0
crap 2
rs 9.4285
1
<?php
2
namespace Yandex\Webmaster\Models;
3
4
use Yandex\Common\XmlResponseModel;
5
6
/**
7
 * Class GetHostStatsResponse
8
 *
9
 * @package Yandex\Webmaster\Models
10
 */
11 View Code Duplication
class GetHostStatsResponse extends XmlResponseModel
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...
12
{
13
    /**
14
     * @var Host $host
15
     */
16
    protected $host;
17
18
    /**
19
     * {@inheritdoc}
20
     */
21
    protected $mappingClasses = [
22
        'host' => 'Yandex\Webmaster\Models\Host',
23
    ];
24
25
    /**
26
     * {@inheritdoc}
27
     */
28
    protected $propNameMap = [
29
        'host' => 'host',
30
    ];
31
32
    /**
33
     * Get Host
34
     *
35
     * @return mixed
36
     */
37
    public function getHost()
38
    {
39
        return $this->host;
40
    }
41
42
    /**
43
     * Set Host
44
     *
45
     * @param $host
46
     * @return self
47
     */
48
    public function setHost(Host $host)
49
    {
50
        $this->host = $host;
51
52
        return $this;
53
    }
54
}
55