Completed
Pull Request — master (#161)
by
unknown
07:58
created

GetHostVerifyResponse::getHost()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 4
Ratio 100 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 2
c 1
b 0
f 1
nc 1
nop 0
dl 4
loc 4
rs 10
1
<?php
2
namespace Yandex\Webmaster\Models;
3
4
use Yandex\Common\Model;
5
6
/**
7
 * Class GetHostStatsResponse
8
 *
9
 * @package Yandex\Webmaster\Models
10
 */
11 View Code Duplication
class GetHostVerifyResponse 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...
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
     * GetHostStatsResponse constructor.
34
     *
35
     * @param \SimpleXMLIterator $data
36
     */
37
    public function __construct(\SimpleXMLIterator $data)
38
    {
39
        $this->fromXml($data);
40
    }
41
42
    /**
43
     * @return mixed
44
     */
45
    public function getHost()
46
    {
47
        return $this->host;
48
    }
49
50
    /**
51
     * @param $host
52
     */
53
    public function setHost($host)
54
    {
55
        $this->host = $host;
56
    }
57
}
58