src/AmazonPaymentBundle/lib/amazon/OffAmazonPaymentsService/Samples/SplitShipmentsCheckoutExample.php
private function _getOrderTotal()
    {
        return array_reduce(
            $this->_orderShipments, 
            function($runningTotal, $item) {
                $runningTotal += $item->price;
                return $runningTotal;
            }
        );
    }
private function _getOrderTotal()
    {
        return array_reduce(
            $this->_orderShipments, 
            function($runningTotal, $item) {
                $runningTotal += $item->price;
                return $runningTotal;
            }
        );
    }
private function _getOrderTotal ( ) { return array_reduce ( $ this -> _orderShipments , function ( $ runningTotal , $ item ) { $ runningTotal += $ item -> price ; return $ runningTotal ; } ) ; }
Return the total amount for the order

@return int order total
Return the total amount for the order