1 | <?php |
||
9 | class Bin |
||
10 | { |
||
11 | /** |
||
12 | * @var string |
||
13 | */ |
||
14 | protected $string; |
||
15 | |||
16 | /** |
||
17 | * Bin constructor. |
||
18 | * |
||
19 | * @param string $string |
||
20 | */ |
||
21 | 5 | public function __construct($string) |
|
25 | |||
26 | /** |
||
27 | * Sets the binary data. |
||
28 | * |
||
29 | * @param string $data |
||
30 | * @return $this |
||
31 | */ |
||
32 | 1 | public function setData($data) |
|
38 | |||
39 | /** |
||
40 | * Gets the binary data. |
||
41 | * |
||
42 | * @return string |
||
43 | */ |
||
44 | 5 | public function getData() |
|
48 | |||
49 | /** |
||
50 | * Convert to string. |
||
51 | * |
||
52 | * @return string |
||
53 | */ |
||
54 | 3 | public function toString() |
|
58 | |||
59 | /** |
||
60 | * @return string |
||
61 | */ |
||
62 | 3 | public function __toString() |
|
66 | } |
||
67 |