public function setVersion(string $version): bool
    {
        $supportedVersions = $this->getSupportedVersions();

        if (in_array($version, $supportedVersions, true)) {
            $this->_version = $version;

            return true;
        } else {
            throw new NotSupportedException("Version `$version` is not supported in " . __CLASS__ . "! Supported versions: " . implode(' - ', $supportedVersions));
        }
    }
public function setVersion(string $version): bool
    {
        $supportedVersions = $this->getSupportedVersions();

        if (in_array($version, $supportedVersions, true)) {
            $this->_version = $version;

            return true;
        } else {
            throw new NotSupportedException("Version `$version` is not supported in " . __CLASS__ . "! Supported versions: " . implode(' - ', $supportedVersions));
        }
    }
public function setVersion ( string $ version ) : bool { $ supportedVersions = $ this -> getSupportedVersions ( ) ; if ( in_array ( $ version , $ supportedVersions , true ) ) { $ this -> _version = $ version ; return true ; } else { throw new NotSupportedException ( "Version `$version` is not supported in " . __CLASS__ . "! Supported versions: " . implode ( ' - ' , $ supportedVersions ) ) ; } }
This method support set version of gateway.

@param string $version of gateway
@return bool Return TRUE if version has been set.
@throws NotSupportedException
This method support set version of gateway .