public function getIssues() { if (!$this->getBoard()->usesSwimlanes() || in_array($this->getBoard()->getSwimlaneType(), array(AgileBoard::SWIMLANES_EXPEDITE, AgileBoard::SWIMLANES_GROUPING))) { $this->_setupSearchObject(); return $this->_search_object->getIssues(); } else { if ($this->getIdentifierIssue() instanceof \thebuggenie\core\entities\Issue) { return $this->getIdentifierIssue()->getChildIssues(); } else { $this->_setupSearchObject(); return $this->_search_object->getIssues(); } } }