ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ReportDto.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
23 class ReportDto
24 {
25  private int $user_id;
27  private array $folder_objects = [];
28 
29  public function __construct(int $user_id)
30  {
31  $this->user_id = $user_id;
32  }
33 
34  public function getUserId(): int
35  {
36  return $this->user_id;
37  }
38 
39  public function addFolderObject(FolderDto $folder_obj): void
40  {
41  $this->folder_objects[$folder_obj->getFolderId()] = $folder_obj;
42  }
43 
44  public function getFolderObjectById(int $folder_id): ?FolderDto
45  {
46  return $this->folder_objects[$folder_id] ?? null;
47  }
48 
52  public function getFolderObjects(): array
53  {
54  return $this->folder_objects;
55  }
56 }
array $folder_objects
Definition: ReportDto.php:27
getFolderObjects()
Definition: ReportDto.php:52
addFolderObject(FolderDto $folder_obj)
Definition: ReportDto.php:39
int $user_id
Definition: ReportDto.php:25
__construct(int $user_id)
Definition: ReportDto.php:29
getFolderObjectById(int $folder_id)
Definition: ReportDto.php:44