src/Widop/GoogleAnalytics/Client.php
public function setPrivateKeyFile($privateKeyFile)
    {
        if (!file_exists($privateKeyFile)) {
            throw GoogleAnalyticsException::invalidPrivateKeyFile($privateKeyFile);
        }

        $this->privateKeyFile = $privateKeyFile;

        return $this;
    }
public function setPrivateKeyFile($privateKeyFile)
    {
        if (!file_exists($privateKeyFile)) {
            throw GoogleAnalyticsException::invalidPrivateKeyFile($privateKeyFile);
        }

        $this->privateKeyFile = $privateKeyFile;

        return $this;
    }
public function setPrivateKeyFile ( $ privateKeyFile ) { if ( ! file_exists ( $ privateKeyFile ) ) { throw GoogleAnalyticsException :: invalidPrivateKeyFile ( $ privateKeyFile ) ; } $ this -> privateKeyFile = $ privateKeyFile ; return $ this ; }
Sets the absolute private key file path.

@param string $privateKeyFile The absolute private key file path.

@throws \Widop\GoogleAnalytics\Exception\GoogleAnalyticsException If the private key file does not exist.

@return \Widop\GoogleAnalytics\Client The client.
Sets the absolute private key file path .