Associate tags to tasks in BoardFormatter

This commit is contained in:
Frederic Guillot
2016-06-24 10:05:45 -04:00
parent 9e278a9370
commit 700b4e8f02
9 changed files with 386 additions and 17 deletions

View File

@@ -15,6 +15,7 @@ class BoardSwimlaneFormatter extends BaseFormatter implements FormatterInterface
protected $swimlanes = array();
protected $columns = array();
protected $tasks = array();
protected $tags = array();
/**
* Set swimlanes
@@ -55,6 +56,19 @@ class BoardSwimlaneFormatter extends BaseFormatter implements FormatterInterface
return $this;
}
/**
* Set tags
*
* @access public
* @param array $tags
* @return $this
*/
public function withTags(array $tags)
{
$this->tags = $tags;
return $this;
}
/**
* Apply formatter
*
@@ -71,6 +85,7 @@ class BoardSwimlaneFormatter extends BaseFormatter implements FormatterInterface
->withSwimlaneId($swimlane['id'])
->withColumns($this->columns)
->withTasks($this->tasks)
->withTags($this->tags)
->format();
$swimlane['nb_swimlanes'] = $nb_swimlanes;