| 1 | <?php |
||
| 10 | class ApiCredentials |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * The email for authentication to Monsum API. |
||
| 14 | * |
||
| 15 | * @var string |
||
| 16 | */ |
||
| 17 | protected $email; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * The API key for authentication to Monsum API. |
||
| 21 | * |
||
| 22 | * @var string |
||
| 23 | */ |
||
| 24 | protected $apiKey; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * The Monsum account hash. |
||
| 28 | * |
||
| 29 | * @var string |
||
| 30 | */ |
||
| 31 | protected $accountHash; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Constructor. |
||
| 35 | * |
||
| 36 | * @param string $email The email for authentication to Monsum API. |
||
| 37 | * @param string $apiKey The email for authentication to Monsum API. |
||
| 38 | * @param string $accountHash The Monsum account hash. |
||
| 39 | */ |
||
| 40 | 126 | public function __construct($email, $apiKey, $accountHash = null) |
|
| 46 | |||
| 47 | /** |
||
| 48 | * Get the email for authentication to Monsum API. |
||
| 49 | * |
||
| 50 | * @return string |
||
| 51 | */ |
||
| 52 | public function getEmail() |
||
| 56 | |||
| 57 | /** |
||
| 58 | * Get the API key for authentication to Monsum API. |
||
| 59 | * |
||
| 60 | * @return string |
||
| 61 | */ |
||
| 62 | public function getApiKey() |
||
| 66 | |||
| 67 | /** |
||
| 68 | * Get the account hash. |
||
| 69 | * |
||
| 70 | * @return null|string |
||
| 71 | */ |
||
| 72 | 9 | public function getAccountHash() |
|
| 76 | } |
||
| 77 |