Two factor problems fixed after compose update

This commit is contained in:
2026-07-07 23:18:06 +02:00
parent 97963b34aa
commit dec038fc0d
143 changed files with 11760 additions and 10 deletions

View File

@@ -0,0 +1,36 @@
<?php
declare(strict_types=1);
namespace Endroid\QrCode\Logo;
final readonly class Logo implements LogoInterface
{
public function __construct(
private string $path,
private ?int $resizeToWidth = null,
private ?int $resizeToHeight = null,
private bool $punchoutBackground = false,
) {
}
public function getPath(): string
{
return $this->path;
}
public function getResizeToWidth(): ?int
{
return $this->resizeToWidth;
}
public function getResizeToHeight(): ?int
{
return $this->resizeToHeight;
}
public function getPunchoutBackground(): bool
{
return $this->punchoutBackground;
}
}

View File

@@ -0,0 +1,16 @@
<?php
declare(strict_types=1);
namespace Endroid\QrCode\Logo;
interface LogoInterface
{
public function getPath(): string;
public function getResizeToWidth(): ?int;
public function getResizeToHeight(): ?int;
public function getPunchoutBackground(): bool;
}