public function setApiVersion($apiVersion = null)
    {
        // No version specified.
        if (is_null($apiVersion)) {
            $apiVersion = config('personality-insights.api_version') ?: 'v3';
        }

        $this->apiVersion = $apiVersion;

        return $this;
    }
public function setApiVersion($apiVersion = null)
    {
        // No version specified.
        if (is_null($apiVersion)) {
            $apiVersion = config('personality-insights.api_version') ?: 'v3';
        }

        $this->apiVersion = $apiVersion;

        return $this;
    }
public function setApiVersion ( $ apiVersion = null ) { // No version specified. if ( is_null ( $ apiVersion ) ) { $ apiVersion = config ( 'personality-insights.api_version' ) ? : 'v3' ; } $ this -> apiVersion = $ apiVersion ; return $ this ; }
Sets ths API version we are using.

@param string $apiVersion

@return $this
Sets ths API version we are using .