| 1 |
<?php |
| 2 |
/*! |
| 3 |
* This file is part of the OAuth PHP Library (https://code.google.com/p/oauth/) |
| 4 |
* |
| 5 |
* OAuth `PHP' Library is an open source software available under the MIT License. |
| 6 |
*/ |
| 7 |
|
| 8 |
namespace Hybridauth\Thirdparty\OAuth; |
| 9 |
|
| 10 |
/** |
| 11 |
* Class OAuthConsumer |
| 12 |
* |
| 13 |
* @package Hybridauth\Thirdparty\OAuth |
| 14 |
*/ |
| 15 |
class OAuthConsumer |
| 16 |
{ |
| 17 |
public $key; |
| 18 |
public $secret; |
| 19 |
public $callback_url; |
| 20 |
|
| 21 |
/** |
| 22 |
* OAuthConsumer constructor. |
| 23 |
* |
| 24 |
* @param $key |
| 25 |
* @param $secret |
| 26 |
* @param null $callback_url |
| 27 |
*/ |
| 28 |
public function __construct($key, $secret, $callback_url = null) |
| 29 |
{ |
| 30 |
$this->key = $key; |
| 31 |
$this->secret = $secret; |
| 32 |
$this->callback_url = $callback_url; |
| 33 |
} |
| 34 |
|
| 35 |
/** |
| 36 |
* @return string |
| 37 |
*/ |
| 38 |
public function __toString() |
| 39 |
{ |
| 40 |
return "OAuthConsumer[key=$this->key,secret=$this->secret]"; |
| 41 |
} |
| 42 |
} |
| 43 |
|