| 1 |
<?php |
| 2 |
|
| 3 |
declare(strict_types=1); |
| 4 |
|
| 5 |
namespace Endroid\QrCode\Builder; |
| 6 |
|
| 7 |
use Endroid\QrCode\Color\ColorInterface; |
| 8 |
use Endroid\QrCode\Encoding\EncodingInterface; |
| 9 |
use Endroid\QrCode\ErrorCorrectionLevel; |
| 10 |
use Endroid\QrCode\Label\Font\FontInterface; |
| 11 |
use Endroid\QrCode\Label\LabelAlignment; |
| 12 |
use Endroid\QrCode\Label\Margin\MarginInterface; |
| 13 |
use Endroid\QrCode\RoundBlockSizeMode; |
| 14 |
use Endroid\QrCode\Writer\Result\ResultInterface; |
| 15 |
use Endroid\QrCode\Writer\WriterInterface; |
| 16 |
|
| 17 |
interface BuilderInterface |
| 18 |
{ |
| 19 |
public static function create(): BuilderInterface; |
| 20 |
|
| 21 |
public function writer(WriterInterface $writer): BuilderInterface; |
| 22 |
|
| 23 |
/** @param array<string, mixed> $writerOptions */ |
| 24 |
public function writerOptions(array $writerOptions): BuilderInterface; |
| 25 |
|
| 26 |
public function data(string $data): BuilderInterface; |
| 27 |
|
| 28 |
public function encoding(EncodingInterface $encoding): BuilderInterface; |
| 29 |
|
| 30 |
public function errorCorrectionLevel(ErrorCorrectionLevel $errorCorrectionLevel): BuilderInterface; |
| 31 |
|
| 32 |
public function size(int $size): BuilderInterface; |
| 33 |
|
| 34 |
public function margin(int $margin): BuilderInterface; |
| 35 |
|
| 36 |
public function roundBlockSizeMode(RoundBlockSizeMode $roundBlockSizeMode): BuilderInterface; |
| 37 |
|
| 38 |
public function foregroundColor(ColorInterface $foregroundColor): BuilderInterface; |
| 39 |
|
| 40 |
public function backgroundColor(ColorInterface $backgroundColor): BuilderInterface; |
| 41 |
|
| 42 |
public function logoPath(string $logoPath): BuilderInterface; |
| 43 |
|
| 44 |
public function logoResizeToWidth(int $logoResizeToWidth): BuilderInterface; |
| 45 |
|
| 46 |
public function logoResizeToHeight(int $logoResizeToHeight): BuilderInterface; |
| 47 |
|
| 48 |
public function logoPunchoutBackground(bool $logoPunchoutBackground): BuilderInterface; |
| 49 |
|
| 50 |
public function labelText(string $labelText): BuilderInterface; |
| 51 |
|
| 52 |
public function labelFont(FontInterface $labelFont): BuilderInterface; |
| 53 |
|
| 54 |
public function labelAlignment(LabelAlignment $labelAlignment): BuilderInterface; |
| 55 |
|
| 56 |
public function labelMargin(MarginInterface $labelMargin): BuilderInterface; |
| 57 |
|
| 58 |
public function labelTextColor(ColorInterface $labelTextColor): BuilderInterface; |
| 59 |
|
| 60 |
public function validateResult(bool $validateResult): BuilderInterface; |
| 61 |
|
| 62 |
public function build(): ResultInterface; |
| 63 |
} |