Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/applications/calendar/parser/data/PhutilCalendarNode.php
12262 views
1
<?php
2
3
abstract 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
}
21
22