accessToken = $accessToken; return $this; } /** * Return access token * @return AccessToken */ public function getAccessToken() { return $this->accessToken; } /** * (@inheritdoc) */ public function save() { $this->getStorage()->createAccessToken( $this->getToken(), $this->getExpireTime(), $this->getAccessToken()->getToken() ); // Associate the scope with the token foreach ($this->getScopes() as $scope) { $this->getStorage()->associateScope($this->getToken(), $scope->getId()); } } }