| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 44 | 5 | public function fromParser(Parser & $parser) |
|
| 45 | { |
||
| 46 | 5 | list ($timestamp, $services, $ipBuffer, $port) = $this->getTemplate()->parse($parser); |
|
| 47 | 5 | $ipSerializer = new IpSerializer(); |
|
| 48 | 5 | return new NetworkAddressTimestamp( |
|
| 49 | 5 | $timestamp, |
|
| 50 | 5 | $services, |
|
| 51 | 5 | $ipSerializer->parse($ipBuffer), |
|
| 52 | $port |
||
| 53 | 5 | ); |
|
| 54 | } |
||
| 55 | } |
||
| 56 |