added internal rates (#1591)
This commit is contained in:
@@ -23,6 +23,10 @@ class TimesheetCountedStatistic
|
||||
* @var float
|
||||
*/
|
||||
protected $recordRate = 0.0;
|
||||
/**
|
||||
* @var float
|
||||
*/
|
||||
protected $recordInternalRate = 0.0;
|
||||
|
||||
/**
|
||||
* Returns the total amount of included timesheet records.
|
||||
@@ -86,4 +90,25 @@ class TimesheetCountedStatistic
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the total internal rate of all included timesheet records.
|
||||
*
|
||||
* @return float
|
||||
*/
|
||||
public function getRecordInternalRate()
|
||||
{
|
||||
return $this->recordInternalRate;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param float $recordInternalRate
|
||||
* @return $this
|
||||
*/
|
||||
public function setRecordInternalRate($recordInternalRate)
|
||||
{
|
||||
$this->recordInternalRate = (float) $recordInternalRate;
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user