1 | <?php |
||
14 | class ContactPoint implements SerializableInterface, JsonLdSerializableInterface |
||
15 | { |
||
16 | /** |
||
17 | * @var array |
||
18 | */ |
||
19 | protected $phones = array(); |
||
20 | |||
21 | /** |
||
22 | * @var array |
||
23 | */ |
||
24 | protected $emails = array(); |
||
25 | |||
26 | /** |
||
27 | * @var array |
||
28 | */ |
||
29 | protected $urls = array(); |
||
30 | |||
31 | /** |
||
32 | * Constructor. |
||
33 | * @param array $phones |
||
34 | * @param array $emails |
||
35 | * @param array $urls |
||
36 | */ |
||
37 | public function __construct(array $phones = array(), array $emails = array(), array $urls = array()) |
||
43 | |||
44 | /** |
||
45 | * @return array |
||
46 | */ |
||
47 | public function getPhones() |
||
51 | |||
52 | /** |
||
53 | * @return array |
||
54 | */ |
||
55 | public function getEmails() |
||
59 | |||
60 | /** |
||
61 | * @return array |
||
62 | */ |
||
63 | public function getUrls() |
||
67 | |||
68 | /** |
||
69 | * {@inheritdoc} |
||
70 | */ |
||
71 | public function serialize() |
||
79 | |||
80 | /** |
||
81 | * {@inheritdoc} |
||
82 | */ |
||
83 | public static function deserialize(array $data) |
||
89 | |||
90 | /** |
||
91 | * {@inheritdoc} |
||
92 | */ |
||
93 | public function toJsonLd() |
||
98 | |||
99 | /** |
||
100 | * @param ContactPoint $otherContactPoint |
||
101 | * @return bool |
||
102 | */ |
||
103 | public function sameAs(ContactPoint $otherContactPoint) |
||
107 | |||
108 | /** |
||
109 | * @param Udb3ModelContactPoint $contactPoint |
||
110 | * @return ContactPoint |
||
111 | */ |
||
112 | public static function fromUdb3ModelContactPoint(Udb3ModelContactPoint $contactPoint) |
||
137 | } |
||
138 |