ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
BasicBucketMeta.php
Go to the documentation of this file.
1 <?php
2 
4 
10 
21 class BasicBucketMeta implements BucketMeta
22 {
23 
27  protected $userId;
31  protected $state;
35  protected $title = "";
39  protected $description = "";
43  protected $percentage = 0;
44 
45 
49  public function getUserId()
50  {
51  return $this->userId;
52  }
53 
54 
58  public function setUserId($userId)
59  {
60  $this->userId = $userId;
61  }
62 
63 
67  public function getState()
68  {
69  return $this->state;
70  }
71 
72 
76  public function setState($state)
77  {
78  $this->state = $state;
79  }
80 
81 
85  public function getTitle()
86  {
87  return $this->title;
88  }
89 
90 
94  public function setTitle($title)
95  {
96  $this->title = $title;
97  }
98 
99 
103  public function getDescription()
104  {
105  return $this->description;
106  }
107 
108 
112  public function setDescription($description)
113  {
114  $this->description = $description;
115  }
116 
117 
121  public function getPercentage()
122  {
123  return $this->percentage;
124  }
125 
126 
133  public function setPercentage(Task $task, $percentage)
134  {
135  throw new \EmptyBucketException("You cannot set the percentage on an empty bucket.");
136  }
137 
138 
142  public function getOverallPercentage()
143  {
144  return $this->percentage;
145  }
146 
147 
153  {
154  $this->percentage = $percentage;
155  }
156 }