diff --git a/library/Icinga/Data/Sortable.php b/library/Icinga/Data/Sortable.php new file mode 100644 index 000000000..73dab5ecf --- /dev/null +++ b/library/Icinga/Data/Sortable.php @@ -0,0 +1,48 @@ + + * $query->order('field, 'ASC') + * + * + * @param string $field + * @param int $direction + * + * @return self + */ + public function order($field, $direction = null); + + /** + * Whether an order is set + * + * @return bool + */ + public function hasOrder(); + + /** + * Get the order if any + * + * @return array|null + */ + public function getOrder(); +}