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

GetHostsResponse   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 44
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 2
Bugs 1 Features 1
Metric Value
c 2
b 1
f 1
dl 0
loc 44
ccs 0
cts 9
cp 0
rs 10
wmc 2
lcom 0
cbo 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getHosts() 0 4 1
A setHosts() 0 6 1
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