ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ReportDto.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
24{
26 private array $folder_objects = [];
27
28 public function __construct(private readonly int $user_id)
29 {
30 }
31
32 public function getUserId(): int
33 {
34 return $this->user_id;
35 }
36
37 public function addFolderObject(FolderDto $folder_obj): void
38 {
39 $this->folder_objects[$folder_obj->getFolderId()] = $folder_obj;
40 }
41
42 public function getFolderObjectById(int $folder_id): ?FolderDto
43 {
44 return $this->folder_objects[$folder_id] ?? null;
45 }
46
50 public function getFolderObjects(): array
51 {
53 }
54}
getFolderObjects()
Definition: ReportDto.php:50
addFolderObject(FolderDto $folder_obj)
Definition: ReportDto.php:37
__construct(private readonly int $user_id)
Definition: ReportDto.php:28
getFolderObjectById(int $folder_id)
Definition: ReportDto.php:42
array $folder_objects
Definition: ReportDto.php:26