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

        $this->children[] = $child;

        return $this;
    }