Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | public function call() |
||
19 | { |
||
20 | $builder = $this->getBuilder(); |
||
21 | |||
22 | $address = $this->getParam('address', ''); |
||
23 | |||
24 | $this->create(AF_INET, SOCK_STREAM, SOL_TCP); |
||
25 | |||
26 | if (! $this->connect($address)) { |
||
27 | $builder->down()->withData('error', $this->getError()); |
||
28 | } |
||
29 | |||
30 | $this->close(); |
||
31 | |||
32 | return $builder->build(); |
||
33 | } |
||
35 |