1 | <?php |
||
29 | class Address { |
||
30 | /** |
||
31 | * @var string |
||
32 | */ |
||
33 | protected $cloudId; |
||
34 | |||
35 | /** |
||
36 | * @var string |
||
37 | */ |
||
38 | protected $displayName; |
||
39 | |||
40 | /** |
||
41 | * Address constructor. |
||
42 | * |
||
43 | * @param string $cloudId |
||
44 | * @param string $displayName |
||
45 | */ |
||
46 | public function __construct($cloudId, $displayName = '') { |
||
50 | |||
51 | /** |
||
52 | * Get user federated id |
||
53 | * |
||
54 | * @return string |
||
55 | */ |
||
56 | public function getCloudId() { |
||
59 | |||
60 | /** |
||
61 | * Get user id |
||
62 | * |
||
63 | * @return string |
||
64 | */ |
||
65 | public function getUserId() { |
||
69 | |||
70 | /** |
||
71 | * Get user host |
||
72 | * |
||
73 | * @return string |
||
74 | */ |
||
75 | public function getHostName() { |
||
79 | |||
80 | /** |
||
81 | * Get user display name, fallback to userId if it is empty |
||
82 | * |
||
83 | * @return string |
||
84 | */ |
||
85 | public function getDisplayName() { |
||
88 | } |
||
89 |