| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 48 | public function add(\SimpleXMLIterator $hostXmlNode) |
||
| 49 | { |
||
| 50 | $host = new Host($hostXmlNode); |
||
| 51 | |||
| 52 | $hostPathArray = explode('/', parse_url($host->getHref(), PHP_URL_PATH)); |
||
| 53 | $hostId = array_pop($hostPathArray); |
||
| 54 | |||
| 55 | $host->setId($hostId); |
||
| 56 | |||
| 57 | $this->collection[] = $host; |
||
| 58 | |||
| 59 | return $this; |
||
| 60 | } |
||
| 61 | |||
| 72 |