1
|
|
|
<?php namespace CalDAVClient\Facade\Responses; |
2
|
|
|
/** |
3
|
|
|
* Copyright 2017 OpenStack Foundation |
4
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
5
|
|
|
* you may not use this file except in compliance with the License. |
6
|
|
|
* You may obtain a copy of the License at |
7
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0 |
8
|
|
|
* Unless required by applicable law or agreed to in writing, software |
9
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS, |
10
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
11
|
|
|
* See the License for the specific language governing permissions and |
12
|
|
|
* limitations under the License. |
13
|
|
|
**/ |
14
|
|
|
|
15
|
|
|
/** |
16
|
|
|
* Class GetCalendarResponse |
17
|
|
|
* @package CalDAVClient\Facade\Responses |
18
|
|
|
*/ |
19
|
|
|
final class GetCalendarResponse extends ETagEntityResponse |
20
|
|
|
{ |
21
|
|
|
const ResourceTypeCalendar = 'calendar'; |
22
|
|
|
/** |
23
|
|
|
* @return string |
24
|
|
|
*/ |
25
|
|
|
public function getDisplayName(){ |
26
|
|
|
return isset($this->found_props['displayname']) ? $this->found_props['displayname'] : null; |
27
|
|
|
} |
28
|
|
|
|
29
|
|
|
public function getResourceType(){ |
30
|
|
|
return isset($this->found_props['resourcetype']) ? $this->found_props['resourcetype'] : null; |
31
|
|
|
} |
32
|
|
|
|
33
|
|
|
/** |
34
|
|
|
* @see https://tools.ietf.org/html/rfc6578 |
35
|
|
|
* @return string |
36
|
|
|
*/ |
37
|
|
|
public function getSyncToken(){ |
38
|
|
|
return isset($this->found_props['sync-token']) ? $this->found_props['sync-token'] : null; |
39
|
|
|
} |
40
|
|
|
|
41
|
|
|
/** |
42
|
|
|
* @return string |
43
|
|
|
*/ |
44
|
|
|
public function getETag(){ |
45
|
|
|
return isset($this->found_props['getetag']) ? $this->found_props['getetag'] : null; |
46
|
|
|
} |
47
|
|
|
|
48
|
|
|
/** |
49
|
|
|
* @return string |
50
|
|
|
*/ |
51
|
|
|
public function getCTag(){ |
52
|
|
|
return isset($this->found_props['getctag']) ? $this->found_props['getctag'] : null; |
53
|
|
|
} |
54
|
|
|
|
55
|
|
|
|
56
|
|
|
} |