vendor/eher/oauth/src/Eher/OAuth/Consumer.php
19 lines · 332 bytes
1<?php
2
3namespace Eher\OAuth;
4
5class Consumer {
6 public $key;
7 public $secret;
8
9 function __construct($key, $secret, $callback_url=NULL) {
10 $this->key = $key;
11 $this->secret = $secret;
12 $this->callback_url = $callback_url;
13 }
14
15 function __toString() {
16 return "Consumer[key=$this->key,secret=$this->secret]";
17 }
18}
19