<?php

declare (strict_types=1);
namespace Freefactu_Vendor\Endroid\QrCode\Writer\Result;

use Freefactu_Vendor\Endroid\QrCode\Matrix\MatrixInterface;
final class PdfResult extends AbstractResult
{
    public function __construct(MatrixInterface $matrix, private readonly \Freefactu_Vendor\FPDF $fpdf)
    {
        parent::__construct($matrix);
    }
    public function getPdf(): \Freefactu_Vendor\FPDF
    {
        return $this->fpdf;
    }
    public function getString(): string
    {
        return $this->fpdf->Output('S');
    }
    public function getMimeType(): string
    {
        return 'application/pdf';
    }
}
