1 | <?php |
||
29 | class CalendarObject implements \Sabre\CalDAV\ICalendarObject, \Sabre\DAVACL\IACL { |
||
30 | |||
31 | /** @var Calendar */ |
||
32 | private $calendar; |
||
33 | |||
34 | /** @var string */ |
||
35 | private $name; |
||
36 | /** |
||
37 | * @var Card |
||
38 | */ |
||
39 | private $card; |
||
40 | |||
41 | /** |
||
42 | * CalendarObject constructor. |
||
43 | * |
||
44 | * @param Calendar $calendar |
||
45 | * @param string $name |
||
46 | */ |
||
47 | public function __construct(Calendar $calendar, string $name, Card $card = null) { |
||
52 | |||
53 | /** |
||
54 | * @inheritDoc |
||
55 | */ |
||
56 | function getOwner() { |
||
59 | |||
60 | /** |
||
61 | * @inheritDoc |
||
62 | */ |
||
63 | function getGroup() { |
||
66 | |||
67 | /** |
||
68 | * @inheritDoc |
||
69 | */ |
||
70 | function getACL() { |
||
73 | |||
74 | /** |
||
75 | * @inheritDoc |
||
76 | */ |
||
77 | function setACL(array $acl) { |
||
80 | |||
81 | /** |
||
82 | * @inheritDoc |
||
83 | */ |
||
84 | function getSupportedPrivilegeSet() { |
||
87 | |||
88 | /** |
||
89 | * @inheritDoc |
||
90 | */ |
||
91 | function put($data) { |
||
94 | |||
95 | /** |
||
96 | * @inheritDoc |
||
97 | */ |
||
98 | function get() { |
||
103 | |||
104 | /** |
||
105 | * @inheritDoc |
||
106 | */ |
||
107 | function getContentType() { |
||
110 | |||
111 | /** |
||
112 | * @inheritDoc |
||
113 | */ |
||
114 | function getETag() { |
||
117 | |||
118 | /** |
||
119 | * @inheritDoc |
||
120 | */ |
||
121 | function getSize() { |
||
124 | |||
125 | /** |
||
126 | * @inheritDoc |
||
127 | */ |
||
128 | function delete() { |
||
131 | |||
132 | /** |
||
133 | * @inheritDoc |
||
134 | */ |
||
135 | function getName() { |
||
138 | |||
139 | /** |
||
140 | * @inheritDoc |
||
141 | */ |
||
142 | function setName($name) { |
||
145 | |||
146 | /** |
||
147 | * @inheritDoc |
||
148 | */ |
||
149 | function getLastModified() { |
||
152 | } |
||
153 |
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.