1 | <?php |
||
18 | class Credentials |
||
19 | { |
||
20 | |||
21 | /** |
||
22 | * @var string |
||
23 | */ |
||
24 | protected $username; |
||
25 | |||
26 | /** |
||
27 | * @var string |
||
28 | */ |
||
29 | protected $password; |
||
30 | |||
31 | /** |
||
32 | * @var string |
||
33 | */ |
||
34 | protected $account; |
||
35 | |||
36 | /** |
||
37 | * Constructor |
||
38 | * |
||
39 | * @param string $username |
||
40 | * @param string $password |
||
41 | * @param string $account |
||
42 | */ |
||
43 | 14 | public function __construct($username, $password, $account) |
|
49 | |||
50 | /** |
||
51 | * Returns a comma seperated string of the credentials |
||
52 | * properties without the password. |
||
53 | * |
||
54 | * @return string |
||
55 | */ |
||
56 | 2 | public function __toString() |
|
60 | |||
61 | /** |
||
62 | * Get the BCLDB account id. |
||
63 | * |
||
64 | * @return string |
||
65 | */ |
||
66 | 4 | public function getAccount() |
|
70 | |||
71 | /** |
||
72 | * Get the BCLDB account id. |
||
73 | * |
||
74 | * @return string |
||
75 | */ |
||
76 | 2 | public function getBcldbId() |
|
80 | |||
81 | /** |
||
82 | * Get the password. |
||
83 | * |
||
84 | * @return string |
||
85 | */ |
||
86 | 2 | public function getPassword() |
|
90 | |||
91 | /** |
||
92 | * Get the username. |
||
93 | * |
||
94 | * @return string |
||
95 | */ |
||
96 | 2 | public function getUsername() |
|
100 | |||
101 | /** |
||
102 | * Get the user's credentials as an array. |
||
103 | * |
||
104 | * @return array |
||
105 | */ |
||
106 | 4 | public function toArray() |
|
110 | } |
||
111 |