added begin, end and export filter for API timesheets (#639)

This commit is contained in:
Kevin Papst
2019-03-14 03:34:54 +01:00
committed by GitHub
parent 2e6f3ed864
commit bde791fa55
28 changed files with 993 additions and 86 deletions

View File

@@ -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)