ILIAS  release_8 Revision v8.24
ReportDto.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
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 {
55 }
56}
getFolderObjects()
Definition: ReportDto.php:52
addFolderObject(FolderDto $folder_obj)
Definition: ReportDto.php:39
__construct(int $user_id)
Definition: ReportDto.php:29
getFolderObjectById(int $folder_id)
Definition: ReportDto.php:44
array $folder_objects
Definition: ReportDto.php:27
int $user_id
Definition: ReportDto.php:25