1 | <?php |
||
16 | class PrivateAppCredential implements CredentialInterface |
||
17 | { |
||
18 | /** |
||
19 | * @var string |
||
20 | */ |
||
21 | protected $apiKey; |
||
22 | |||
23 | /** |
||
24 | * @var string |
||
25 | */ |
||
26 | protected $password; |
||
27 | |||
28 | /** |
||
29 | * @var string |
||
30 | */ |
||
31 | protected $sharedSecret; |
||
32 | |||
33 | public function __construct($apiKey, $password, $sharedSecret) |
||
39 | |||
40 | /** |
||
41 | * @return string |
||
42 | */ |
||
43 | public function getApiKey() |
||
47 | |||
48 | /** |
||
49 | * @param string $apiKey |
||
50 | * |
||
51 | * @return PrivateAppCredential |
||
52 | */ |
||
53 | public function setApiKey($apiKey) |
||
59 | |||
60 | /** |
||
61 | * @return string |
||
62 | */ |
||
63 | public function getPassword() |
||
67 | |||
68 | /** |
||
69 | * @param string $password |
||
70 | * |
||
71 | * @return PrivateAppCredential |
||
72 | */ |
||
73 | public function setPassword($password) |
||
79 | |||
80 | /** |
||
81 | * @return string |
||
82 | */ |
||
83 | public function getSharedSecret() |
||
87 | |||
88 | /** |
||
89 | * @param string $sharedSecret |
||
90 | * |
||
91 | * @return PrivateAppCredential |
||
92 | */ |
||
93 | public function setSharedSecret($sharedSecret) |
||
99 | |||
100 | /** |
||
101 | * {@inheritdoc} |
||
102 | */ |
||
103 | public function applyToRequest(RequestInterface $request) |
||
108 | } |