|
|
@@ -19,7 +19,7 @@ use chillerlan\QRCode\Output\{
|
|
|
QRCodeOutputException, QRImage, QRMarkup, QROutputInterface, QRString
|
|
|
};
|
|
|
use chillerlan\Traits\{
|
|
|
- ClassLoader, ContainerInterface
|
|
|
+ ClassLoader, ImmutableSettingsInterface
|
|
|
};
|
|
|
|
|
|
/**
|
|
|
@@ -106,9 +106,9 @@ class QRCode{
|
|
|
/**
|
|
|
* QRCode constructor.
|
|
|
*
|
|
|
- * @param \chillerlan\Traits\ContainerInterface|null $options
|
|
|
+ * @param \chillerlan\Traits\ImmutableSettingsInterface|null $options
|
|
|
*/
|
|
|
- public function __construct(ContainerInterface $options = null){
|
|
|
+ public function __construct(ImmutableSettingsInterface $options = null){
|
|
|
mb_internal_encoding('UTF-8');
|
|
|
|
|
|
$this->setOptions($options ?? new QROptions);
|
|
|
@@ -117,12 +117,12 @@ class QRCode{
|
|
|
/**
|
|
|
* Sets the options, called internally by the constructor
|
|
|
*
|
|
|
- * @param \chillerlan\Traits\ContainerInterface $options
|
|
|
+ * @param \chillerlan\Traits\ImmutableSettingsInterface $options
|
|
|
*
|
|
|
* @return \chillerlan\QRCode\QRCode
|
|
|
* @throws \chillerlan\QRCode\QRCodeException
|
|
|
*/
|
|
|
- public function setOptions(ContainerInterface $options):QRCode{
|
|
|
+ public function setOptions(ImmutableSettingsInterface $options):QRCode{
|
|
|
|
|
|
if(!array_key_exists($options->eccLevel, $this::ECC_MODES)){
|
|
|
throw new QRCodeException('Invalid error correct level: '.$options->eccLevel);
|