1 | <?php |
||
15 | class Frame implements FrameInterface |
||
16 | { |
||
17 | /** |
||
18 | * Data from network for this object |
||
19 | * |
||
20 | * @var string |
||
21 | */ |
||
22 | private $data; |
||
23 | |||
24 | /** |
||
25 | * The source address of this frame |
||
26 | * |
||
27 | * @var string |
||
28 | */ |
||
29 | private $remoteAddress; |
||
30 | |||
31 | /** |
||
32 | * SocketResponse constructor. |
||
33 | * |
||
34 | * @param string $data Data from network for this response |
||
35 | * @param string $remoteAddress The source address of this frame |
||
36 | */ |
||
37 | 84 | public function __construct($data, $remoteAddress) |
|
42 | |||
43 | /** {@inheritdoc} */ |
||
44 | 68 | public function getData() |
|
48 | |||
49 | /** {@inheritdoc} */ |
||
50 | 66 | public function __toString() |
|
54 | |||
55 | /** {@inheritdoc} */ |
||
56 | 43 | public function getRemoteAddress() |
|
60 | } |
||
61 |