@@ -166,27 +166,63 @@ public function getMatrix(bool $boolean = null):array{
166
166
return $ matrix ;
167
167
}
168
168
169
+ /**
170
+ * @deprecated 5.0.0 use QRMatrix::getMatrix() instead
171
+ * @see \chillerlan\QRCode\Data\QRMatrix::getMatrix()
172
+ * @codeCoverageIgnore
173
+ */
174
+ public function matrix (bool $ boolean = null ):array {
175
+ return $ this ->getMatrix ($ boolean );
176
+ }
177
+
169
178
/**
170
179
* Returns the current version number
171
180
*/
172
181
public function getVersion ():?Version {
173
182
return $ this ->version ;
174
183
}
175
184
185
+ /**
186
+ * @deprecated 5.0.0 use QRMatrix::getVersion() instead
187
+ * @see \chillerlan\QRCode\Data\QRMatrix::getVersion()
188
+ * @codeCoverageIgnore
189
+ */
190
+ public function version ():?Version {
191
+ return $ this ->getVersion ();
192
+ }
193
+
176
194
/**
177
195
* Returns the current ECC level
178
196
*/
179
197
public function getEccLevel ():?EccLevel {
180
198
return $ this ->eccLevel ;
181
199
}
182
200
201
+ /**
202
+ * @deprecated 5.0.0 use QRMatrix::getEccLevel() instead
203
+ * @see \chillerlan\QRCode\Data\QRMatrix::getEccLevel()
204
+ * @codeCoverageIgnore
205
+ */
206
+ public function eccLevel ():?EccLevel {
207
+ return $ this ->getEccLevel ();
208
+ }
209
+
183
210
/**
184
211
* Returns the current mask pattern
185
212
*/
186
213
public function getMaskPattern ():?MaskPattern {
187
214
return $ this ->maskPattern ;
188
215
}
189
216
217
+ /**
218
+ * @deprecated 5.0.0 use QRMatrix::getMaskPattern() instead
219
+ * @see \chillerlan\QRCode\Data\QRMatrix::getMaskPattern()
220
+ * @codeCoverageIgnore
221
+ */
222
+ public function maskPattern ():?MaskPattern {
223
+ return $ this ->getMaskPattern ();
224
+ }
225
+
190
226
/**
191
227
* Returns the absoulute size of the matrix, including quiet zone (after setting it).
192
228
*
@@ -196,6 +232,15 @@ public function getSize():int{
196
232
return $ this ->moduleCount ;
197
233
}
198
234
235
+ /**
236
+ * @deprecated 5.0.0 use QRMatrix::getSize() instead
237
+ * @see \chillerlan\QRCode\Data\QRMatrix::getSize()
238
+ * @codeCoverageIgnore
239
+ */
240
+ public function size ():int {
241
+ return $ this ->getSize ();
242
+ }
243
+
199
244
/**
200
245
* Returns the value of the module at position [$x, $y] or -1 if the coordinate is outside the matrix
201
246
*/
0 commit comments