API-DecoderResult.md.txt 1.8 KB

123456789101112131415161718192021222324
  1. # `DecoderResult`
  2. The full phpDocumentor API documentation can be found at [chillerlan.github.io/php-qrcode](https://chillerlan.github.io/php-qrcode/classes/chillerlan-QRCode-Decoder-DecoderResult.html).
  3. ## Methods
  4. | method | return | description |
  5. |--------------------------------------------|------------|------------------------------------------------------------------------------------------------------------|
  6. | `__construct(iterable $properties = null)` | - | used internally by [`Decoder`](https://github.com/chillerlan/php-qrcode/blob/main/src/Decoder/Decoder.php) |
  7. | `__toString()` | `string` | returns the data contained in the QR symbol |
  8. | `hasStructuredAppend()` | `bool` | |
  9. | `getQRMatrix()` | `QRMatrix` | |
  10. ## Magic Properties (read-only)
  11. | property | type | description |
  12. |-----------------------------|---------------|------------------|
  13. | `$rawBytes` | `BitBuffer` | |
  14. | `$version` | `Version` | |
  15. | `$eccLevel` | `EccLevel` | |
  16. | `$maskPattern` | `MaskPattern` | |
  17. | `$data` | `string` | defaults to `''` |
  18. | `$structuredAppendParity` | `int` | defaults to `-1` |
  19. | `$structuredAppendSequence` | `int` | defaults to `-1` |