Correct Aphlict websocket URI construction after PHP8 compatibility changes
[phabricator.git] / src / applications / calendar / parser / data / PhutilCalendarContainerNode.php
blob5beebb784ead3f948d58861b23860569e6120a6a
1 <?php
3 abstract class PhutilCalendarContainerNode
4 extends PhutilCalendarNode {
6 private $children = array();
8 final public function getChildren() {
9 return $this->children;
12 final public function getChildrenOfType($type) {
13 $result = array();
15 foreach ($this->getChildren() as $key => $child) {
16 if ($child->getNodeType() != $type) {
17 continue;
19 $result[$key] = $child;
22 return $result;
25 final public function appendChild(PhutilCalendarNode $node) {
26 $this->children[] = $node;
27 return $this;