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

GetHostsResponse::getHosts()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

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