Correct Aphlict websocket URI construction after PHP8 compatibility changes
[phabricator.git] / src / applications / calendar / parser / data / PhutilCalendarProxyDateTime.php
blob1293c484ab34e2e9a6636e0c76ef9f2620b9b934
1 <?php
3 abstract class PhutilCalendarProxyDateTime
4 extends PhutilCalendarDateTime {
6 private $proxy;
8 final protected function setProxy(PhutilCalendarDateTime $proxy) {
9 $this->proxy = $proxy;
10 return $this;
13 final protected function getProxy() {
14 return $this->proxy;
17 public function __clone() {
18 $this->proxy = clone $this->proxy;
21 public function setViewerTimezone($timezone) {
22 $this->getProxy()->setViewerTimezone($timezone);
23 return $this;
26 public function getViewerTimezone() {
27 return $this->getProxy()->getViewerTimezone();
30 public function setIsAllDay($is_all_day) {
31 $this->getProxy()->setIsAllDay($is_all_day);
32 return $this;
35 public function getIsAllDay() {
36 return $this->getProxy()->getIsAllDay();
39 public function newPHPDateTimezone() {
40 return $this->getProxy()->newPHPDateTimezone();
43 public function newPHPDateTime() {
44 return $this->getProxy()->newPHPDateTime();
47 public function getTimezone() {
48 return $this->getProxy()->getTimezone();