1 | <?php |
||
25 | class vCardFormat extends AbstractFormat |
||
26 | { |
||
27 | use EmailTrait; |
||
28 | use UrlTrait; |
||
29 | |||
30 | /** |
||
31 | * @var string the name |
||
32 | */ |
||
33 | public $name; |
||
34 | /** |
||
35 | * @var string the full name |
||
36 | */ |
||
37 | public $fullName; |
||
38 | /** |
||
39 | * @var string the address |
||
40 | */ |
||
41 | public $address; |
||
42 | /** |
||
43 | * @var string the nickname |
||
44 | */ |
||
45 | public $nickName; |
||
46 | /** |
||
47 | * @var string the work phone |
||
48 | */ |
||
49 | public $workPhone; |
||
50 | /** |
||
51 | * @var string the home phone |
||
52 | */ |
||
53 | public $homePhone; |
||
54 | /** |
||
55 | * @var string a date in the format YYYY-MM-DD or ISO 860 |
||
56 | */ |
||
57 | public $birthday; |
||
58 | /** |
||
59 | * @var string a date in the format YYYY-MM-DD or ISO 860 |
||
60 | */ |
||
61 | public $anniversary; |
||
62 | /** |
||
63 | * @var string the gender |
||
64 | */ |
||
65 | public $gender; |
||
66 | /** |
||
67 | * @var string the categories. A list of "tags" that can be used to describe the object represented by this vCard. |
||
68 | * e.g., developer,designer,climber,swimmer |
||
69 | */ |
||
70 | public $categories; |
||
71 | /** |
||
72 | * @var string the instant messaging and presence protocol (instant messenger id) |
||
73 | */ |
||
74 | public $impp; |
||
75 | /** |
||
76 | * @var string the photo |
||
77 | */ |
||
78 | public $photo; |
||
79 | /** |
||
80 | * @var string the role e.g., Executive |
||
81 | */ |
||
82 | public $role; |
||
83 | /** |
||
84 | * @var string the name and optionally the unit(s) of the organization |
||
85 | * associated with the vCard object. This property is based on the X.520 Organization Name |
||
86 | * attribute and the X.520 Organization Unit attribute. |
||
87 | */ |
||
88 | public $organization; |
||
89 | /** |
||
90 | * @var string notes |
||
91 | */ |
||
92 | public $note; |
||
93 | /** |
||
94 | * @var string language of the user |
||
95 | */ |
||
96 | public $lang; |
||
97 | |||
98 | /** |
||
99 | * @throws InvalidConfigException |
||
100 | * @return string |
||
101 | */ |
||
102 | public function getText(): string |
||
128 | |||
129 | /** |
||
130 | * @throws InvalidConfigException |
||
131 | * @return string the formatted photo. Makes sure is of the right image extension. |
||
132 | */ |
||
133 | protected function getFormattedPhoto(): ?string |
||
148 | } |
||
149 |