code: public function setAccessToken($data) {
          (true === is_object($data)) ? $token = $data->access_token : $token = $data;
          $this->_accesstoken = $token;
      }
docs: Access Token Setter
  
  @param object|string $data
  @return void