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() { |
||
71 | |||
72 | /** |
||
73 | * Get user host |
||
74 | * |
||
75 | * @return string |
||
76 | */ |
||
77 | public function getHostName() { |
||
82 | |||
83 | /** |
||
84 | * Get user display name, fallback to userId if it is empty |
||
85 | * |
||
86 | * @return string |
||
87 | */ |
||
88 | public function getDisplayName() { |
||
91 | } |
||
92 |