@@ -123,11 +123,17 @@ discard block |
||
123 | 123 | return $obj; |
124 | 124 | } |
125 | 125 | |
126 | + /** |
|
127 | + * @param string $data |
|
128 | + */ |
|
126 | 129 | protected static function _decodeBinaryEncoding($data) { |
127 | 130 | throw new \RuntimeException( |
128 | 131 | "Binary encoding of REAL is not implemented."); |
129 | 132 | } |
130 | 133 | |
134 | + /** |
|
135 | + * @param string $data |
|
136 | + */ |
|
131 | 137 | protected static function _decodeDecimalEncoding($data) { |
132 | 138 | $nr = ord($data[0]) & 0x03; |
133 | 139 | if ($nr != 0x03) { |
@@ -137,6 +143,9 @@ discard block |
||
137 | 143 | return new self($str); |
138 | 144 | } |
139 | 145 | |
146 | + /** |
|
147 | + * @param string $data |
|
148 | + */ |
|
140 | 149 | protected static function _decodeSpecialRealValue($data) { |
141 | 150 | if (strlen($data) != 1) { |
142 | 151 | throw new DecodeException( |
@@ -239,7 +248,7 @@ discard block |
||
239 | 248 | /** |
240 | 249 | * Test that number is valid for this context. |
241 | 250 | * |
242 | - * @param mixed $num |
|
251 | + * @param string $num |
|
243 | 252 | * @return boolean |
244 | 253 | */ |
245 | 254 | private static function _validateNumber($num) { |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | * |
30 | 30 | * @param int|null $expectedTag Optional outer tag expectation |
31 | 31 | * @throws \UnexpectedValueException If expectation fails |
32 | - * @return ExplicitTagging |
|
32 | + * @return TaggedType |
|
33 | 33 | */ |
34 | 34 | public function expectExplicit($expectedTag = null) { |
35 | 35 | if (!($this instanceof ExplicitTagging)) { |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | * |
59 | 59 | * @param int|null $expectedTag Optional outer tag expectation |
60 | 60 | * @throws \UnexpectedValueException If expectation fails |
61 | - * @return ImplicitTagging |
|
61 | + * @return TaggedType |
|
62 | 62 | */ |
63 | 63 | public function expectImplicit($expectedTag = null) { |
64 | 64 | if (!($this instanceof ImplicitTagging)) { |
@@ -76,7 +76,6 @@ discard block |
||
76 | 76 | * |
77 | 77 | * @param int $tag Type tag of the inner element |
78 | 78 | * @param int|null $expectedTag Optional outer tag expectation |
79 | - * @param int $class Optional inner type class expectation |
|
80 | 79 | * @throws \UnexpectedValueException If expectation fails |
81 | 80 | * @return UnspecifiedType |
82 | 81 | */ |