| @@ 13-67 (lines=55) @@ | ||
| 10 | * |
|
| 11 | * @package Yandex\Webmaster\Models |
|
| 12 | */ |
|
| 13 | class GetHostsResponse extends Model |
|
| 14 | { |
|
| 15 | ||
| 16 | /** |
|
| 17 | * @var Hosts $hosts |
|
| 18 | */ |
|
| 19 | protected $hosts = null; |
|
| 20 | ||
| 21 | /** |
|
| 22 | * {@inheritdoc} |
|
| 23 | */ |
|
| 24 | protected $mappingClasses = [ |
|
| 25 | 'hosts' => 'Yandex\Webmaster\Models\Hosts', |
|
| 26 | ]; |
|
| 27 | ||
| 28 | /** |
|
| 29 | * {@inheritdoc} |
|
| 30 | */ |
|
| 31 | protected $propNameMap = [ |
|
| 32 | 'hosts' => 'hostlist', |
|
| 33 | ]; |
|
| 34 | ||
| 35 | /** |
|
| 36 | * GetHostsResponse constructor. |
|
| 37 | * |
|
| 38 | * @param \SimpleXMLIterator $data |
|
| 39 | */ |
|
| 40 | public function __construct(\SimpleXMLIterator $data) |
|
| 41 | { |
|
| 42 | $this->fromXml($data); |
|
| 43 | } |
|
| 44 | ||
| 45 | /** |
|
| 46 | * Get Hosts |
|
| 47 | * |
|
| 48 | * @return Hosts |
|
| 49 | */ |
|
| 50 | public function getHosts() |
|
| 51 | { |
|
| 52 | return $this->hosts; |
|
| 53 | } |
|
| 54 | ||
| 55 | /** |
|
| 56 | * Set Hosts |
|
| 57 | * |
|
| 58 | * @param Hosts $hosts |
|
| 59 | * @return $this |
|
| 60 | */ |
|
| 61 | public function setHosts($hosts) |
|
| 62 | { |
|
| 63 | $this->hosts = $hosts; |
|
| 64 | ||
| 65 | return $this; |
|
| 66 | } |
|
| 67 | } |
|
| 68 | ||
| @@ 11-57 (lines=47) @@ | ||
| 8 | * |
|
| 9 | * @package Yandex\Webmaster\Models |
|
| 10 | */ |
|
| 11 | class GetHostStatsResponse extends Model |
|
| 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 | ||
| @@ 11-57 (lines=47) @@ | ||
| 8 | * |
|
| 9 | * @package Yandex\Webmaster\Models |
|
| 10 | */ |
|
| 11 | class GetHostVerifyResponse extends Model |
|
| 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 | ||