| 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) |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Add item |
||
| 44 | * |
||
| 45 | * @param \SimpleXMLIterator $hostXmlNode |
||
| 46 | * @return $this |
||
| 47 | */ |
||
| 48 | public function add(\SimpleXMLIterator $hostXmlNode) |
||
| 61 | |||
| 62 | /** |
||
| 63 | * Get items |
||
| 64 | * |
||
| 65 | * @return array |
||
| 66 | */ |
||
| 67 | public function getAll() |
||
| 71 | } |
||
| 72 |