Lines Matching refs:this

99         $this->setApp($app);
100 $this->setAccessToken($accessToken);
101 $this->setMethod($method);
102 $this->setEndpoint($endpoint);
103 $this->setParams($params);
104 $this->setETag($eTag);
105 $this->graphVersion = $graphVersion ?: Facebook::DEFAULT_GRAPH_VERSION;
117 $this->accessToken = $accessToken;
119 $this->accessToken = $accessToken->getValue();
122 return $this;
136 $existingAccessToken = $this->getAccessToken();
138 $this->setAccessToken($accessToken);
143 return $this;
153 return $this->accessToken;
163 return $this->accessToken ? new AccessToken($this->accessToken) : null;
173 $this->app = $app;
183 return $this->app;
193 if (!$accessTokenEntity = $this->getAccessTokenEntity()) {
197 return $accessTokenEntity->getAppSecretProof($this->app->getSecret());
207 $accessToken = $this->getAccessToken();
220 $this->method = strtoupper($method);
230 return $this->method;
240 if (!$this->method) {
244 if (!in_array($this->method, ['GET', 'POST', 'DELETE'])) {
263 $this->setAccessTokenFromParams($params['access_token']);
268 $this->endpoint = FacebookUrlManipulator::removeParamsFromUrl($endpoint, $filterParams);
270 return $this;
281 return $this->endpoint;
293 if ($this->eTag) {
294 $headers['If-None-Match'] = $this->eTag;
297 return array_merge($this->headers, $headers);
307 $this->headers = array_merge($this->headers, $headers);
317 $this->eTag = $eTag;
332 $this->setAccessTokenFromParams($params['access_token']);
340 $params = $this->sanitizeFileParams($params);
341 $this->dangerouslySetParams($params);
343 return $this;
355 $this->params = array_merge($this->params, $params);
357 return $this;
371 $this->addFile($key, $value);
387 $this->files[$key] = $file;
395 $this->files = [];
405 return $this->files;
415 return !empty($this->files);
425 foreach ($this->files as $file) {
441 $params = $this->getPostParams();
443 return new RequestBodyMultipart($params, $this->files);
453 $params = $this->getPostParams();
465 $params = $this->params;
467 $accessToken = $this->getAccessToken();
470 $params['appsecret_proof'] = $this->getAppSecretProof();
483 if ($this->getMethod() === 'POST') {
484 return $this->getParams();
497 return $this->graphVersion;
507 $this->validateMethod();
509 $graphVersion = FacebookUrlManipulator::forceSlashPrefix($this->graphVersion);
510 $endpoint = FacebookUrlManipulator::forceSlashPrefix($this->getEndpoint());
514 if ($this->getMethod() !== 'POST') {
515 $params = $this->getParams();