OAuthCommonConsumerCredentials

Value object for the credentials of an OAuth service.

Defined (1)

The class is defined in the following location(s).

/lib/PHPoAuthLib/src/OAuth/Common/Consumer/Credentials.php  
  1. class Credentials implements CredentialsInterface 
  2. /** 
  3. * @var string 
  4. */ 
  5. protected $consumerId; 
  6.  
  7. /** 
  8. * @var string 
  9. */ 
  10. protected $consumerSecret; 
  11.  
  12. /** 
  13. * @var string 
  14. */ 
  15. protected $callbackUrl; 
  16.  
  17. /** 
  18. * @param string $consumerId 
  19. * @param string $consumerSecret 
  20. * @param string $callbackUrl 
  21. */ 
  22. public function __construct($consumerId, $consumerSecret, $callbackUrl) 
  23. $this->consumerId = $consumerId; 
  24. $this->consumerSecret = $consumerSecret; 
  25. $this->callbackUrl = $callbackUrl; 
  26.  
  27. /** 
  28. * @return string 
  29. */ 
  30. public function getCallbackUrl() 
  31. return $this->callbackUrl; 
  32.  
  33. /** 
  34. * @return string 
  35. */ 
  36. public function getConsumerId() 
  37. return $this->consumerId; 
  38.  
  39. /** 
  40. * @return string 
  41. */ 
  42. public function getConsumerSecret() 
  43. return $this->consumerSecret;