ILIAS  release_8 Revision v8.23
FolderDto.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
23 class FolderDto
24 {
25  private int $folder_id;
26  private ?string $folder_title;
28  private array $orphaned_mail_objects = [];
29 
30  public function __construct(int $folder_id, ?string $folder_title)
31  {
32  $this->folder_id = $folder_id;
33  $this->folder_title = $folder_title;
34  }
35 
36  public function getFolderId(): int
37  {
38  return $this->folder_id;
39  }
40 
41  public function getFolderTitle(): ?string
42  {
43  return $this->folder_title;
44  }
45 
46  public function addMailObject(MailDto $mail_obj): void
47  {
48  $this->orphaned_mail_objects[$mail_obj->getMailId()] = $mail_obj;
49  }
50 
54  public function getOrphanedMailObjects(): array
55  {
57  }
58 }
__construct(int $folder_id, ?string $folder_title)
Definition: FolderDto.php:30