| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- <?php
- namespace OAuth\Common\Consumer;
- /**
- * Value object for the credentials of an OAuth service.
- */
- class Credentials implements CredentialsInterface
- {
- /**
- * @var string
- */
- protected $consumerId;
- /**
- * @var string
- */
- protected $consumerSecret;
- /**
- * @var string
- */
- protected $callbackUrl;
- /**
- * @param string $consumerId
- * @param string $consumerSecret
- * @param string $callbackUrl
- */
- public function __construct($consumerId, $consumerSecret, $callbackUrl)
- {
- $this->consumerId = $consumerId;
- $this->consumerSecret = $consumerSecret;
- $this->callbackUrl = $callbackUrl;
- }
- /**
- * @return string
- */
- public function getCallbackUrl()
- {
- return $this->callbackUrl;
- }
- /**
- * @return string
- */
- public function getConsumerId()
- {
- return $this->consumerId;
- }
- /**
- * @return string
- */
- public function getConsumerSecret()
- {
- return $this->consumerSecret;
- }
- }
|