1 | <?php |
||
19 | final class Person |
||
20 | { |
||
21 | /** |
||
22 | * @var string[] List of names of Agents |
||
23 | */ |
||
24 | private $names = array(); |
||
25 | |||
26 | /** |
||
27 | * @var IRI[] List of mailto IRIs of Agents |
||
28 | */ |
||
29 | private $mboxes = array(); |
||
30 | |||
31 | /** |
||
32 | * @var string[] List of the SHA1 hashes of mailto IRIs of Agents |
||
33 | */ |
||
34 | private $mboxSha1Sums = array(); |
||
35 | |||
36 | /** |
||
37 | * @var string[] List of openids that uniquely identify the Agents |
||
38 | */ |
||
39 | private $openIds = array(); |
||
40 | |||
41 | /** |
||
42 | * @var Account[] List of accounts of Agents |
||
43 | */ |
||
44 | private $accounts = array(); |
||
45 | |||
46 | private function __construct() |
||
49 | |||
50 | /** |
||
51 | * @param Agent[] $agents |
||
52 | */ |
||
53 | public static function createFromAgents(array $agents): self |
||
83 | |||
84 | /** |
||
85 | * @return string[] |
||
86 | */ |
||
87 | public function getNames(): array |
||
91 | |||
92 | /** |
||
93 | * @return IRI[] |
||
94 | */ |
||
95 | public function getMboxes(): array |
||
99 | |||
100 | /** |
||
101 | * @return string[] |
||
102 | */ |
||
103 | public function getMboxSha1Sums(): array |
||
107 | |||
108 | /** |
||
109 | * @return string[] |
||
110 | */ |
||
111 | public function getOpenIds(): array |
||
115 | |||
116 | /** |
||
117 | * @return Account[] |
||
118 | */ |
||
119 | public function getAccounts(): array |
||
123 | } |
||
124 |