public function query(Query $query = null) { if ($query === null) { return $this->_query; } $this->_query = $query; }