private function checkAllColumnsAreProvided(Tracker_Semantic_Status $semantic, array $column_ids) { $all_open_values = $semantic->getOpenValues(); $values_not_provided = array_diff($all_open_values, $column_ids); $values_not_open = array_diff($column_ids, $all_open_values); if (!empty($values_not_provided)) { throw new Kanban_SemanticStatusAllColumnIdsNotProvidedException(); } if (!empty($values_not_open)) { throw new Kanban_SemanticStatusColumnIdsNotInOpenSemanticException(); } }
private function getOpenValues(Tracker_Semantic_Status $semantic) { return $semantic->getOpenValues(); }