public function addChild(self $child)
    {
        if ($this->isVoid) {
            throw new Exception\RuntimeException(
                'Void elements can\'t have child elements.'
            );
        }

        $this->children[] = $child;

        return $this;
    }
public function addChild(self $child)
    {
        if ($this->isVoid) {
            throw new Exception\RuntimeException(
                'Void elements can\'t have child elements.'
            );
        }

        $this->children[] = $child;

        return $this;
    }
public function addChild ( self $ child ) { if ( $ this -> isVoid ) { throw new Exception \ RuntimeException ( 'Void elements can\'t have child elements.' ) ; } $ this -> children [ ] = $ child ; return $ this ; }
Add child to tag

@param \SxCore\Html\HtmlElement $child

@throws Exception\RuntimeException
@return \SxCore\Html\HtmlElement
Add child to tag