added begin, end and export filter for API timesheets (#639)
This commit is contained in:
@@ -56,6 +56,10 @@ class TimesheetFixtures extends Fixture
|
||||
* @var bool
|
||||
*/
|
||||
protected $allowEmptyDescriptions = true;
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
protected $exported = false;
|
||||
|
||||
/**
|
||||
* @param bool $allowEmptyDescriptions
|
||||
@@ -68,6 +72,17 @@ class TimesheetFixtures extends Fixture
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param bool $exported
|
||||
* @return TimesheetFixtures
|
||||
*/
|
||||
public function setExported(bool $exported)
|
||||
{
|
||||
$this->exported = $exported;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param bool $fixedRate
|
||||
* @return TimesheetFixtures
|
||||
@@ -292,6 +307,10 @@ class TimesheetFixtures extends Fixture
|
||||
$entry->setHourlyRate($hourlyRate);
|
||||
}
|
||||
|
||||
if (null !== $this->exported) {
|
||||
$entry->setExported($this->exported);
|
||||
}
|
||||
|
||||
if ($setEndDate) {
|
||||
$entry
|
||||
->setEnd($end)
|
||||
|
||||
Reference in New Issue
Block a user