summaryrefslogtreecommitdiff
path: root/app/Formatter/BoardColumnFormatter.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Formatter/BoardColumnFormatter.php')
-rw-r--r--app/Formatter/BoardColumnFormatter.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/app/Formatter/BoardColumnFormatter.php b/app/Formatter/BoardColumnFormatter.php
index 3d8f6e67..d49a577a 100644
--- a/app/Formatter/BoardColumnFormatter.php
+++ b/app/Formatter/BoardColumnFormatter.php
@@ -15,6 +15,7 @@ class BoardColumnFormatter extends BaseFormatter implements FormatterInterface
protected $swimlaneId = 0;
protected $columns = array();
protected $tasks = array();
+ protected $tags = array();
/**
* Set swimlaneId
@@ -56,6 +57,19 @@ class BoardColumnFormatter extends BaseFormatter implements FormatterInterface
}
/**
+ * Set tags
+ *
+ * @access public
+ * @param array $tags
+ * @return $this
+ */
+ public function withTags(array $tags)
+ {
+ $this->tags = $tags;
+ return $this;
+ }
+
+ /**
* Apply formatter
*
* @access public
@@ -66,6 +80,7 @@ class BoardColumnFormatter extends BaseFormatter implements FormatterInterface
foreach ($this->columns as &$column) {
$column['tasks'] = BoardTaskFormatter::getInstance($this->container)
->withTasks($this->tasks)
+ ->withTags($this->tags)
->withSwimlaneId($this->swimlaneId)
->withColumnId($column['id'])
->format();