public function getVersion() { if ($this->_version === null) { $this->_version = $this->defaultVersion(); } else { if (!is_scalar($this->_version)) { $this->_version = call_user_func($this->_version, $this); } } return $this->_version; }