public function calculation($type, $query, array $options = array()) { $query->calculate($type); return compact('query', 'options'); }