@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.)
hq.recaptime.dev/wiki/Phorge
phorge
phabricator
1<?php
2
3abstract class PhutilCalendarNode extends Phobject {
4
5 private $attributes = array();
6
7 final public function getNodeType() {
8 return $this->getPhobjectClassConstant('NODETYPE');
9 }
10
11 final public function setAttribute($key, $value) {
12 $this->attributes[$key] = $value;
13 return $this;
14 }
15
16 final public function getAttribute($key, $default = null) {
17 return idx($this->attributes, $key, $default);
18 }
19
20}