Nie możesz wybrać więcej, niż 25 tematów
Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
|
- <?php
-
- namespace App\Files\PDF;
-
- use App\Files\TmpFile;
-
- abstract class PDFFile extends TmpFile
- {
- protected const DIR = ['pdf'];
-
- private string $appFileName = "";
-
- public function __construct(?string $id = null)
- {
- parent::__construct($id);
- }
-
- /**
- * @override
- */
- public function getFileExtension(): string
- {
- return "pdf";
- }
-
- /**
- * @override
- */
- public function getMimeType(): string
- {
- return "application/pdf";
- }
-
- /**
- * @override
- */
- public function getAppFileName()
- {
- return $this->appFileName;
- }
-
- public function setAppFileName(string $fileName)
- {
- $this->appFileName = $fileName;
- return $this;
- }
- }
|