src/Http/VersionControl.php
public function setDefaultVersion(string $code)
    {
        if (! array_key_exists($code, $this->supportedVersions)) {
            throw new InvalidArgumentException("Unable to set [{$code}] as default version!");
        }

        $this->defaultVersion = $code;

        return $this;
    }
public function setDefaultVersion(string $code)
    {
        if (! array_key_exists($code, $this->supportedVersions)) {
            throw new InvalidArgumentException("Unable to set [{$code}] as default version!");
        }

        $this->defaultVersion = $code;

        return $this;
    }
public function setDefaultVersion ( string $ code ) { if ( ! array_key_exists ( $ code , $ this -> supportedVersions ) ) { throw new InvalidArgumentException ( "Unable to set [{$code}] as default version!" ) ; } $ this -> defaultVersion = $ code ; return $ this ; }
Set default version.

@param  string  $code

@throws \InvalidArgumentException

@return $this
Set default version .