src/Invoice/Creator.php
protected function getFeeLines()
    {
        $result = array();

        $shippingLines = $this->getShippingLines();
        if ($shippingLines) {
            $shippingLines = $this->addLineType($shippingLines, static::LineType_Shipping, Api::Nature_Service);
            $result = array_merge($result, $shippingLines);
        }

        $line = $this->getPaymentFeeLine();
        if ($line) {
            $line = $this->addLineType($line,static::LineType_PaymentFee, Api::Nature_Service);
            $result[] = $line;
        }

        $line = $this->getGiftWrappingLine();
        if ($line) {
            $line = $this->addLineType($line,static::LineType_GiftWrapping, Api::Nature_Service);
            $result[] = $line;
        }

        return $result;
    }
protected function getFeeLines()
    {
        $result = array();

        $shippingLines = $this->getShippingLines();
        if ($shippingLines) {
            $shippingLines = $this->addLineType($shippingLines, static::LineType_Shipping, Api::Nature_Service);
            $result = array_merge($result, $shippingLines);
        }

        $line = $this->getPaymentFeeLine();
        if ($line) {
            $line = $this->addLineType($line,static::LineType_PaymentFee, Api::Nature_Service);
            $result[] = $line;
        }

        $line = $this->getGiftWrappingLine();
        if ($line) {
            $line = $this->addLineType($line,static::LineType_GiftWrapping, Api::Nature_Service);
            $result[] = $line;
        }

        return $result;
    }
protected function getFeeLines ( ) { $ result = array ( ) ; $ shippingLines = $ this -> getShippingLines ( ) ; if ( $ shippingLines ) { $ shippingLines = $ this -> addLineType ( $ shippingLines , static :: LineType_Shipping , Api :: Nature_Service ) ; $ result = array_merge ( $ result , $ shippingLines ) ; } $ line = $ this -> getPaymentFeeLine ( ) ; if ( $ line ) { $ line = $ this -> addLineType ( $ line , static :: LineType_PaymentFee , Api :: Nature_Service ) ; $ result [ ] = $ line ; } $ line = $ this -> getGiftWrappingLine ( ) ; if ( $ line ) { $ line = $ this -> addLineType ( $ line , static :: LineType_GiftWrapping , Api :: Nature_Service ) ; $ result [ ] = $ line ; } return $ result ; }
Returns all the fee lines for the order.

Override this method if it is easier to return all fee lines at once.
If you do so, you are responsible for adding the line Meta::LineType meta
data. Otherwise, override the methods getShippingLines() (or
getShippingLine()), getPaymentFeeLine() (if applicable), and
getGiftWrappingLine() (if available).

@return array[]
A, possibly empty, array of fee line arrays.
Returns all the fee lines for the order .