public function setAccessToken($token)
    {
        if (!is_object($token) && $token !== null) {
            $token = $this->createToken($token);
        }
        $this->_accessToken = $token;
        $this->saveAccessToken($token);
    }
public function setAccessToken($token)
    {
        if (!is_object($token) && $token !== null) {
            $token = $this->createToken($token);
        }
        $this->_accessToken = $token;
        $this->saveAccessToken($token);
    }
public function setAccessToken ( $ token ) { if ( ! is_object ( $ token ) && $ token !== null ) { $ token = $ this -> createToken ( $ token ) ; } $ this -> _accessToken = $ token ; $ this -> saveAccessToken ( $ token ) ; }
Sets access token to be used.
@param array|OAuthToken $token access token or its configuration.
Sets access token to be used .