document_type = $document_type; $this->files = $files; $this->reference = $reference; } /** * @return string */ public function getDocumentType(): string { return $this->document_type; } /** * @return string|null */ public function getReference(): string { return $this->reference; } /** * @return array * @throws \App\Classes\Exceptions\MalformedRequestException */ public function getFiles(): array { return (new ConvertsBase64ToFile())->convert($this->files); } }