| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | public function get() |
||
| 14 | { |
||
| 15 | $ips = []; |
||
| 16 | $packet = $this->_client->getPacket(); |
||
| 17 | $packet->addChild($this->_wrapperTag)->addChild('get'); |
||
| 18 | $response = $this->_client->request($packet); |
||
| 19 | |||
| 20 | foreach ($response->addresses->ip_info as $ipInfo) { |
||
| 21 | $ips[] = new Struct\Info($ipInfo); |
||
| 22 | } |
||
| 23 | |||
| 24 | return $ips; |
||
| 25 | } |
||
| 26 | } |
||
| 27 |