mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-08-25 13:47:57 +00:00
:octocat:
This commit is contained in:
@@ -145,15 +145,15 @@ foreach($matrix as $row){
|
||||
```
|
||||
|
||||
### Custom output modules
|
||||
But then again, instead of bloating your own code, you can simply create your own output module by extending `QROutputBase` and implementing `QROutputInterface`.
|
||||
But then again, instead of bloating your own code, you can simply create your own output module by extending `QROutputAbstract`.
|
||||
```php
|
||||
$qrcode = new QRCode($data, new MyCustomOutput($myCustomOutputOptions), $qrOptions)
|
||||
```
|
||||
|
||||
```php
|
||||
class MyCustomOutput extends QROutputBase implements QROutputInterface{
|
||||
class MyCustomOutput extends QROutputAbstract{
|
||||
|
||||
// inherited from QROutputBase
|
||||
// inherited from QROutputAbstract
|
||||
protected $matrix; // array
|
||||
protected $pixelCount; // int
|
||||
protected $options; // MyCustomOutputOptions (if present)
|
||||
|
||||
Reference in New Issue
Block a user