src/Http/VersionControl.php
public function addVersion(string $code, string $namespace, bool $default = false)
    {
        $this->supportedVersions[$code] = $namespace;

        if (is_null($this->defaultVersion) || $default === true) {
            $this->setDefaultVersion($code);
        }

        return $this;
    }
public function addVersion(string $code, string $namespace, bool $default = false)
    {
        $this->supportedVersions[$code] = $namespace;

        if (is_null($this->defaultVersion) || $default === true) {
            $this->setDefaultVersion($code);
        }

        return $this;
    }
public function addVersion ( string $ code , string $ namespace , bool $ default = false ) { $ this -> supportedVersions [ $ code ] = $ namespace ; if ( is_null ( $ this -> defaultVersion ) || $ default === true ) { $ this -> setDefaultVersion ( $ code ) ; } return $ this ; }
Add version.

@param  string  $code
@param  string  $namespace
@param  bool  $default

@return $this
Add version .