for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Yandex\Webmaster\Models;
use Yandex\Common\ObjectModel;
/**
* Class Hosts
*
* @package Yandex\Webmaster\Models
*/
class Hosts extends ObjectModel
{
* @var array $collection a collection of Host objects
protected $collection = [];
* @var array $mappingClasses
protected $mappingClasses = [];
* @var array $propNameMap
protected $propNameMap = [];
* Hosts constructor.
* @param \SimpleXMLIterator $data
public function __construct(\SimpleXMLIterator $data)
$this->fromXml($data);
}
* Add item
* @param \SimpleXMLIterator $host
* @return $this
public function add(\SimpleXMLIterator $host)
$this->collection[] = new Host($host);
return $this;
* Get items
* @return array
public function getAll()
return $this->collection;