Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
42 | 15 | public function fromParser(Parser & $parser) |
|
43 | { |
||
44 | 15 | list ($services, $ipBuffer, $port) = $this->getTemplate()->parse($parser); |
|
45 | 15 | $ipSerializer = new IpSerializer(); |
|
46 | 15 | return new NetworkAddress( |
|
47 | 15 | $services, |
|
48 | 15 | $ipSerializer->parse($ipBuffer), |
|
49 | $port |
||
50 | 15 | ); |
|
51 | } |
||
52 | |||
62 |