Changeset View
Changeset View
Standalone View
Standalone View
src/parser/calendar/data/PhutilCalendarNode.php
- This file was added.
<?php | |||||
abstract class PhutilCalendarNode extends Phobject { | |||||
private $attributes = array(); | |||||
final public function getNodeType() { | |||||
return $this->getPhobjectClassConstant('NODETYPE'); | |||||
} | |||||
final public function setAttribute($key, $value) { | |||||
$this->attributes[$key] = $value; | |||||
return $this; | |||||
} | |||||
final public function getAttribute($key, $default = null) { | |||||
return idx($this->attributes, $key, $default); | |||||
} | |||||
} |