1 | <?php |
||
7 | class NetworkConnection implements NetworkConnectionInterface |
||
8 | { |
||
9 | /** |
||
10 | * @var SocketInterface |
||
11 | */ |
||
12 | protected $conn; |
||
13 | |||
14 | /** |
||
15 | * @param SocketInterface $conn |
||
16 | */ |
||
17 | 22 | public function __construct(SocketInterface $conn) |
|
21 | |||
22 | /** |
||
23 | * |
||
24 | */ |
||
25 | 15 | public function __destruct() |
|
29 | |||
30 | /** |
||
31 | * @override |
||
32 | * @inheritDoc |
||
33 | */ |
||
34 | 1 | public function getResourceId() |
|
38 | |||
39 | /** |
||
40 | * @override |
||
41 | * @inheritDoc |
||
42 | */ |
||
43 | 1 | public function getEndpoint() |
|
47 | |||
48 | /** |
||
49 | * @override |
||
50 | * @inheritDoc |
||
51 | */ |
||
52 | 3 | public function getAddress() |
|
56 | |||
57 | /** |
||
58 | * @override |
||
59 | * @inheritDoc |
||
60 | */ |
||
61 | 1 | public function getHost() |
|
67 | |||
68 | /** |
||
69 | * @override |
||
70 | * @inheritDoc |
||
71 | */ |
||
72 | 1 | public function getPort() |
|
78 | |||
79 | /** |
||
80 | * @override |
||
81 | * @inheritDoc |
||
82 | */ |
||
83 | 1 | public function send($data) |
|
87 | |||
88 | /** |
||
89 | * @override |
||
90 | * @inheritDoc |
||
91 | */ |
||
92 | 1 | public function close() |
|
96 | } |