| Total Complexity | 4 |
| Total Lines | 51 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class Credentials implements CredentialsInterface |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var string |
||
| 12 | */ |
||
| 13 | protected $consumerId; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var string |
||
| 17 | */ |
||
| 18 | protected $consumerSecret; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | protected $callbackUrl; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @param string $consumerId |
||
| 27 | * @param string $consumerSecret |
||
| 28 | * @param string $callbackUrl |
||
| 29 | */ |
||
| 30 | public function __construct($consumerId, $consumerSecret, $callbackUrl) |
||
| 31 | { |
||
| 32 | $this->consumerId = $consumerId; |
||
| 33 | $this->consumerSecret = $consumerSecret; |
||
| 34 | $this->callbackUrl = $callbackUrl; |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @return string |
||
| 39 | */ |
||
| 40 | public function getCallbackUrl() |
||
| 41 | { |
||
| 42 | return $this->callbackUrl; |
||
| 43 | } |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @return string |
||
| 47 | */ |
||
| 48 | public function getConsumerId() |
||
| 49 | { |
||
| 50 | return $this->consumerId; |
||
| 51 | } |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @return string |
||
| 55 | */ |
||
| 56 | public function getConsumerSecret() |
||
| 59 | } |
||
| 60 | } |
||
| 61 |