added tags for timesheets (#604)

This commit is contained in:
Mathias
2019-05-12 01:40:04 +02:00
committed by Kevin Papst
parent f31118292c
commit e29e183e84
84 changed files with 2132 additions and 158 deletions

View File

@@ -54,6 +54,10 @@ class TimesheetQuery extends ActivityQuery
* @var DateRange
*/
protected $dateRange;
/**
* @var iterable
*/
protected $tags;
public function __construct()
{
@@ -208,4 +212,31 @@ class TimesheetQuery extends ActivityQuery
return $this;
}
/**
* @return iterable
*/
public function getTags()
{
return $this->tags;
}
/**
* @param iterable $tags
* @return $this
*/
public function setTags(iterable $tags)
{
$this->tags = $tags;
return $this;
}
/**
* @return bool
*/
public function hasTags()
{
return !empty($this->tags) && count($this->tags) > 0;
}
}