mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-10-15 16:26:23 +00:00
:octocat: accept the ContainerInterface instead of QROptions
This commit is contained in:
@@ -13,8 +13,9 @@
|
||||
namespace chillerlan\QRCode\Output;
|
||||
|
||||
use chillerlan\QRCode\{
|
||||
Data\QRMatrix, QRCode, QROptions
|
||||
Data\QRMatrix, QRCode
|
||||
};
|
||||
use chillerlan\Traits\ContainerInterface;
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -49,10 +50,10 @@ abstract class QROutputAbstract implements QROutputInterface{
|
||||
/**
|
||||
* QROutputAbstract constructor.
|
||||
*
|
||||
* @param \chillerlan\QRCode\QROptions $options
|
||||
* @param \chillerlan\QRCode\Data\QRMatrix $matrix
|
||||
* @param \chillerlan\Traits\ContainerInterface $options
|
||||
* @param \chillerlan\QRCode\Data\QRMatrix $matrix
|
||||
*/
|
||||
public function __construct(QROptions $options, QRMatrix $matrix){
|
||||
public function __construct(ContainerInterface $options, QRMatrix $matrix){
|
||||
$this->options = $options;
|
||||
$this->matrix = $matrix;
|
||||
$this->moduleCount = $this->matrix->size();
|
||||
|
||||
Reference in New Issue
Block a user