Implicitly add an TimeEntry's weight when calling getValue()

refs #4190
This commit is contained in:
Johannes Meyer 2013-10-24 17:47:39 +02:00
parent 34f25c6009
commit 103d43ea77
1 changed files with 3 additions and 2 deletions

View File

@ -136,11 +136,12 @@ class TimeEntry
/**
* Return the amount of events in this group
*
* @param bool $raw Whether to ignore the set weight
* @return int
*/
public function getValue()
public function getValue($raw = false)
{
return $this->value;
return $raw ? $this->value : $this->value * $this->weight;
}
/**