| 1 | <?php |
||
| 11 | class Hosts extends ObjectModel |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var array $collection a collection of Host objects |
||
| 15 | */ |
||
| 16 | protected $collection = []; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var array $mappingClasses |
||
| 20 | */ |
||
| 21 | protected $mappingClasses = []; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var array $propNameMap |
||
| 25 | */ |
||
| 26 | protected $propNameMap = []; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Hosts constructor. |
||
| 30 | * |
||
| 31 | * @param \SimpleXMLIterator $data |
||
| 32 | */ |
||
| 33 | public function __construct(\SimpleXMLIterator $data) |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Add item |
||
| 40 | * |
||
| 41 | * @param \SimpleXMLIterator $host |
||
| 42 | * |
||
| 43 | * @return $this |
||
| 44 | */ |
||
| 45 | public function add(\SimpleXMLIterator $host) |
||
| 51 | |||
| 52 | /** |
||
| 53 | * Get items |
||
| 54 | * |
||
| 55 | * @return array |
||
| 56 | */ |
||
| 57 | public function getAll() |
||
| 61 | } |
||
| 62 |