| 1 | <?php |
||
| 8 | class Ipv4 implements IpInterface |
||
| 9 | { |
||
| 10 | const MAGIC = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xff"; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | private $ip; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Ipv4 constructor. |
||
| 19 | * @param string $ip |
||
| 20 | */ |
||
| 21 | public function __construct($ip) |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @return string |
||
| 32 | */ |
||
| 33 | public function getHost() |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @return BufferInterface |
||
| 40 | */ |
||
| 41 | public function getBuffer() |
||
| 45 | } |
||
| 46 |