PHP为什么我在回显时得到相同的值?

    public $client;
    public $youtubeClient;

    public function init()
    {
        Yii::import('ext.googleapi.src.*');
        require_once 'Google_Client.php';
        require_once 'contrib/Google_AnalyticsService.php';

        $this->client = new Google_Client();
        $this->client->setApplicationName(Yii::app()->params['applicationName']);

        $this->client->setClientId(Yii::app()->params['client_id']);
        $this->client->setClientSecret(Yii::app()->params['client_secret']);
        $this->client->setRedirectUri(Yii::app()->params['redirect_uri']);
        $this->client->setDeveloperKey(Yii::app()->params['developer_key']);
        $this->client->setScopes(array(Yii::app()->params['scopes']));
        $this->client->setUseObjects(true);

    /*** Youtube Connect Code ***/
    require_once 'contrib/Google_YouTubeAnalyticsService.php';
    require_once 'contrib/Google_YouTubeService.php';

    $this->youtubeClient = new Google_Client();
    $this->youtubeClient->setClientId(Yii::app()->params['youtube_client_id']);
    $this->youtubeClient->setClientSecret(Yii::app()->params['youtube_client_secret']);
    $this->youtubeClient->setScopes(array(
      'https://www.googleapis.com/auth/yt-analytics.readonly',
      'https://www.googleapis.com/auth/youtube.readonly'
    ));
    $this->youtubeClient->setDeveloperKey(Yii::app()->params['developer_key']);
    $redirect = filter_var(Yii::app()->params['youtube_redirect_uri'],FILTER_SANITIZE_URL);
    $this->youtubeClient->setRedirectUri($redirect);
    $this->youtubeClient->setState(mt_rand());
    $this->youtubeClient->setUseObjects(true);

    echo "Client Secret: ".$this->client->getClientSecret();
    echo "<br>";
    echo "Youtube Secret: ".$this->youtubeClient->getClientSecret();
    die;
  }

I set the Client Secret and Youtube Secret to have different values, but I am wondering why do they have the same value when I try to echo them.

This is the result:

Client Secret: aaaa-bbb-ccc
Youtube Secret: aaa-bbb-ccc

Is this because I used the same class? like the code new Google_Client(). I am not sure if I'm doing it the right way though. Any ideas on this? Thanks! :)

As you can see in Google_Client source

public function setClientSecret($clientSecret) {
    global $apiConfig;
    $apiConfig['oauth2_client_secret'] = $clientSecret;
    self::$auth->clientSecret = $clientSecret;
}

It store values in static field.