lucidlogic /
omnipay-pesapal
| 1 | <?php |
||
| 2 | |||
| 3 | namespace Omnipay\Pesapal\OAuth; |
||
| 4 | |||
| 5 | class OAuthConsumer |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var string |
||
| 9 | */ |
||
| 10 | public $key; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | public $secret; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @param $key |
||
| 19 | * @param $secret |
||
| 20 | * @param null $callback_url |
||
|
0 ignored issues
–
show
Documentation
Bug
introduced
by
Loading history...
|
|||
| 21 | */ |
||
| 22 | public function __construct( |
||
| 23 | $key, |
||
| 24 | $secret, |
||
| 25 | $callback_url = null |
||
| 26 | ) { |
||
| 27 | $this->key = $key; |
||
| 28 | $this->secret = $secret; |
||
| 29 | $this->callback_url = $callback_url; |
||
|
0 ignored issues
–
show
|
|||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @return string |
||
| 34 | */ |
||
| 35 | public function __toString(): string |
||
| 36 | { |
||
| 37 | return "OAuthConsumer[key=$this->key,secret=$this->secret]"; |
||
| 38 | } |
||
| 39 | } |
||
| 40 |