<?php
/**
 * @copyright (c) Kufer Software GmbH, Loisachstrasse 4, D-84453 Mühldorf
 */

class FileUploadGeneral extends FileUpload
{
  private $attachements = array();

  protected function processInfos($fileNr, $localFilename, $filename, $filetype): void
  {
    $attachement = new Attachment($filename, $localFilename, $filetype);
    $this->attachements[] = $attachement;
  }

  public function getUploadedAttachments(): array
  {
    return $this->attachements;
  }
}