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 | * @return $this |
||
54 | */ |
||
55 | public static function createFromAgents(array $agents) |
||
85 | |||
86 | public function getNames() |
||
90 | |||
91 | public function getMboxes() |
||
95 | |||
96 | public function getMboxSha1Sums() |
||
100 | |||
101 | public function getOpenIds() |
||
105 | |||
106 | public function getAccounts() |
||
110 | } |
||
111 |