protected function parseComponent(Component $parentComponent)
    {
        $components = $this->pointer['value'] ?: [];

        foreach ($components as $component) {
            $componentName = static::getTagName($component['name']);
            $currentComponent = $this->root->createComponent(
                $componentName,
                null,
                false
            );

            $this->pointer = &$component;
            $this->parseVCalendarComponents($currentComponent);

            $parentComponent->add($currentComponent);
        }
    }
protected function parseComponent(Component $parentComponent)
    {
        $components = $this->pointer['value'] ?: [];

        foreach ($components as $component) {
            $componentName = static::getTagName($component['name']);
            $currentComponent = $this->root->createComponent(
                $componentName,
                null,
                false
            );

            $this->pointer = &$component;
            $this->parseVCalendarComponents($currentComponent);

            $parentComponent->add($currentComponent);
        }
    }
protected function parseComponent ( Component $ parentComponent ) { $ components = $ this -> pointer [ 'value' ] ? : [ ] ; foreach ( $ components as $ component ) { $ componentName = static :: getTagName ( $ component [ 'name' ] ) ; $ currentComponent = $ this -> root -> createComponent ( $ componentName , null , false ) ; $ this -> pointer = & $ component ; $ this -> parseVCalendarComponents ( $ currentComponent ) ; $ parentComponent -> add ( $ currentComponent ) ; } }
Parse a component.

@param Component $parentComponent
Parse a component .