public function getLog($rev = null) { $this->_ensureInitialized(); return is_null($rev) ? $this->_logs : (isset($this->_logs[$rev]) ? $this->_logs[$rev] : null); }