yii\base\Module::getVersion PHP Method

getVersion() public method

If version is not explicitly set, Module::defaultVersion method will be used to determine its value.
Since: 2.0.11
public getVersion ( ) : string
return string the version of this module.
    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;
    }