vendor and env first commit

This commit is contained in:
2025-03-28 08:52:46 +01:00
parent f8388bc81b
commit 8f26283832
10976 changed files with 1349952 additions and 2 deletions
+36
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;
}
}
+16
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;
}