| 1 | <?php |
||
| 19 | class Account |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * The access key |
||
| 23 | * @var string |
||
| 24 | */ |
||
| 25 | private $accessKey; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * The secret key |
||
| 29 | * @var string |
||
| 30 | */ |
||
| 31 | private $secretKey; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * The api host |
||
| 35 | * @var string |
||
| 36 | */ |
||
| 37 | private $apiHost; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Constructs an Account with the given authorisation data. |
||
| 41 | * |
||
| 42 | * @param string $accessKey The access key |
||
| 43 | * @param string $secretKey The secret key |
||
| 44 | * @param string $apiHost The api host |
||
| 45 | */ |
||
| 46 | 26 | public function __construct($accessKey, $secretKey, $apiHost) |
|
| 52 | |||
| 53 | /** |
||
| 54 | * Returns the access key. |
||
| 55 | * |
||
| 56 | * @return string |
||
| 57 | */ |
||
| 58 | 15 | public function getAccessKey() |
|
| 62 | |||
| 63 | /** |
||
| 64 | * Returns the secret key. |
||
| 65 | * |
||
| 66 | * @return string |
||
| 67 | */ |
||
| 68 | 17 | public function getSecretKey() |
|
| 72 | |||
| 73 | /** |
||
| 74 | * Returns the api host. |
||
| 75 | * |
||
| 76 | * @return string |
||
| 77 | */ |
||
| 78 | 17 | public function getApiHost() |
|
| 82 | } |
||
| 83 |