| Total Complexity | 5 |
| Total Lines | 62 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class YahooApiConfiguration |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var string |
||
| 16 | */ |
||
| 17 | private $clientId; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var string |
||
| 21 | */ |
||
| 22 | private $clientSecret; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var string |
||
| 26 | */ |
||
| 27 | private $redirectUrl; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * TwitterApiConfiguration constructor. |
||
| 31 | * @param string $clientId |
||
| 32 | * @param string $clientSecret |
||
| 33 | * @param string $redirectUrl |
||
| 34 | */ |
||
| 35 | 2 | public function __construct($clientId, $clientSecret, $redirectUrl) |
|
| 36 | { |
||
| 37 | 2 | $this->clientId = $clientId; |
|
| 38 | 2 | $this->clientSecret = $clientSecret; |
|
| 39 | 2 | $this->redirectUrl = $redirectUrl; |
|
| 40 | 2 | } |
|
| 41 | |||
| 42 | /** |
||
| 43 | * @return string |
||
| 44 | */ |
||
| 45 | 1 | public function clientId() |
|
| 46 | { |
||
| 47 | 1 | return $this->clientId; |
|
| 48 | } |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @return string |
||
| 52 | */ |
||
| 53 | 1 | public function clientSecret() |
|
| 56 | } |
||
| 57 | |||
| 58 | /** |
||
| 59 | * @return string |
||
| 60 | */ |
||
| 61 | 1 | public function redirectUrl() |
|
| 64 | } |
||
| 65 | |||
| 66 | /** |
||
| 67 | * This is just to identify that, we initiated the login sequence (not someone else) |
||
| 68 | * |
||
| 69 | * @return string |
||
| 70 | */ |
||
| 71 | 1 | public function ourSecretState() |
|
| 74 | } |
||
| 75 | } |
||
| 76 |