public function &__get($name) { if ($name == 'children') { return $this->vobject->children; } $return = $this->vobject->__get($name); if ($return instanceof \Sabre\VObject\Component) { $return = new VObject($return); } return $return; }