src/Invoice/FlattenerInvoiceLines.php
protected function getMergedLinesText(array $parent, array $children)
    {
        $childrenTexts = array();
        foreach ($children as $child) {
            $childrenTexts[] = $child[Tag::Product];
        }
        $childrenText = ' (' . implode(', ', $childrenTexts) . ')';
        return $parent[Tag::Product] .  $childrenText;
    }
protected function getMergedLinesText(array $parent, array $children)
    {
        $childrenTexts = array();
        foreach ($children as $child) {
            $childrenTexts[] = $child[Tag::Product];
        }
        $childrenText = ' (' . implode(', ', $childrenTexts) . ')';
        return $parent[Tag::Product] .  $childrenText;
    }
protected function getMergedLinesText ( array $ parent , array $ children ) { $ childrenTexts = array ( ) ; foreach ( $ children as $ child ) { $ childrenTexts [ ] = $ child [ Tag :: Product ] ; } $ childrenText = ' (' . implode ( ', ' , $ childrenTexts ) . ')' ; return $ parent [ Tag :: Product ] . $ childrenText ; }
Returns a 'product' field for the merged lines.

@param array $parent
The parent invoice line.
@param array[] $children
The child invoice lines.

@return string
The concatenated product texts.
Returns a product field for the merged lines .