vendor and env first commit
This commit is contained in:
+36
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user