ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
BasicBucketMeta.php
Go to the documentation of this file.
1<?php
2
20
24
33{
34 protected int $user_id;
35 protected int $state;
36 protected string $title = "";
37 protected string $description = "";
38 protected int $percentage = 0;
39
40 public function getUserId(): int
41 {
42 return $this->user_id;
43 }
44
45 public function setUserId(int $user_id): void
46 {
47 $this->user_id = $user_id;
48 }
49
50 public function getState(): int
51 {
52 return $this->state;
53 }
54
55 public function setState(int $state): void
56 {
57 $this->state = $state;
58 }
59
60 public function getTitle(): string
61 {
62 return $this->title;
63 }
64
65 public function setTitle(string $title): void
66 {
67 $this->title = $title;
68 }
69
70 public function getDescription(): string
71 {
72 return $this->description;
73 }
74
75 public function setDescription(string $description): void
76 {
77 $this->description = $description;
78 }
79
80 public function getPercentage(): int
81 {
82 return $this->percentage;
83 }
84
85 public function setPercentage(Task $task, int $percentage): void
86 {
87 throw new BucketNotFoundException("You cannot set the percentage on an empty bucket.");
88 }
89
90 public function getOverallPercentage(): int
91 {
92 return $this->percentage;
93 }
94
95 public function setOverallPercentage(int $percentage): void
96 {
97 $this->percentage = $percentage;
98 }
99}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: BasicBucket.php:19
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Job.php:19