| 1 | <?php |
||
| 8 | class Credential |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var string |
||
| 12 | */ |
||
| 13 | protected $clientId; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var string |
||
| 17 | */ |
||
| 18 | protected $password; |
||
| 19 | |||
| 20 | public function __construct($clientId, $password) |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @return mixed |
||
| 28 | */ |
||
| 29 | public function getClientId() |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @param mixed $clientId |
||
| 36 | * @return Credential |
||
| 37 | */ |
||
| 38 | public function setClientId($clientId) |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @return mixed |
||
| 46 | */ |
||
| 47 | public function getPassword() |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @param mixed $password |
||
| 54 | * @return Credential |
||
| 55 | */ |
||
| 56 | public function setPassword($password) |
||
| 61 | |||
| 62 | /** |
||
| 63 | * Converts the credential to an array |
||
| 64 | * @return array |
||
| 65 | */ |
||
| 66 | public function toArray() |
||
| 73 | } |