public function last_query() { return end($this->logs); }
/** * @return array */ public function last_query() { $rt = array('write' => $this->_writer->last_query(), 'read' => NULL); if (empty($this->_reader)) { $rt['read'] = $rt['write']; } else { $rt['read'] = $this->_reader->last_query(); } return $rt; }