136 lines
2.8 KiB
PHP
136 lines
2.8 KiB
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of the Kimai time-tracking app.
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
namespace App\Model;
|
|
|
|
class TimesheetCountedStatistic
|
|
{
|
|
private $recordAmount = 0;
|
|
private $recordDuration = 0;
|
|
private $recordRate = 0.0;
|
|
private $recordInternalRate = 0.0;
|
|
private $recordAmountBillable = 0;
|
|
private $recordDurationBillable = 0;
|
|
private $recordRateBillable = 0.0;
|
|
|
|
/**
|
|
* Returns the total amount of included timesheet records.
|
|
*
|
|
* @return int
|
|
*/
|
|
public function getRecordAmount()
|
|
{
|
|
return $this->recordAmount;
|
|
}
|
|
|
|
/**
|
|
* @param int $recordAmount
|
|
* @return $this
|
|
*/
|
|
public function setRecordAmount($recordAmount)
|
|
{
|
|
$this->recordAmount = (int) $recordAmount;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Returns the total duration of all included timesheet records.
|
|
*
|
|
* @return int
|
|
*/
|
|
public function getRecordDuration()
|
|
{
|
|
return $this->recordDuration;
|
|
}
|
|
|
|
/**
|
|
* @param int $recordDuration
|
|
* @return $this
|
|
*/
|
|
public function setRecordDuration($recordDuration)
|
|
{
|
|
$this->recordDuration = (int) $recordDuration;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Returns the total rate of all included timesheet records.
|
|
*
|
|
* @return float
|
|
*/
|
|
public function getRecordRate()
|
|
{
|
|
return $this->recordRate;
|
|
}
|
|
|
|
/**
|
|
* @param float $recordRate
|
|
* @return $this
|
|
*/
|
|
public function setRecordRate($recordRate)
|
|
{
|
|
$this->recordRate = (float) $recordRate;
|
|
|
|
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;
|
|
}
|
|
|
|
public function getRecordAmountBillable(): int
|
|
{
|
|
return $this->recordAmountBillable;
|
|
}
|
|
|
|
public function setRecordAmountBillable(int $recordAmount): void
|
|
{
|
|
$this->recordAmountBillable = $recordAmount;
|
|
}
|
|
|
|
public function getDurationBillable(): int
|
|
{
|
|
return $this->recordDurationBillable;
|
|
}
|
|
|
|
public function setDurationBillable(int $recordDuration): void
|
|
{
|
|
$this->recordDurationBillable = $recordDuration;
|
|
}
|
|
|
|
public function getRateBillable(): float
|
|
{
|
|
return $this->recordRateBillable;
|
|
}
|
|
|
|
public function setRateBillable(float $recordRate): void
|
|
{
|
|
$this->recordRateBillable = $recordRate;
|
|
}
|
|
}
|