private function formatInstallments($installment)
    {
        return [
            'quantity' => $installment->getQuantity(),
            'amount' => $installment->getAmount(),
            'totalAmount' => round($installment->getTotalAmount(), 2),
            'text' => str_replace('.', ',', $this->getInstallmentText($installment))
        ];
    }
private function formatInstallments($installment)
    {
        return [
            'quantity' => $installment->getQuantity(),
            'amount' => $installment->getAmount(),
            'totalAmount' => round($installment->getTotalAmount(), 2),
            'text' => str_replace('.', ',', $this->getInstallmentText($installment))
        ];
    }
private function formatInstallments ( $ installment ) { return [ 'quantity' => $ installment -> getQuantity ( ) , 'amount' => $ installment -> getAmount ( ) , 'totalAmount' => round ( $ installment -> getTotalAmount ( ) , 2 ) , 'text' => str_replace ( '.' , ',' , $ this -> getInstallmentText ( $ installment ) ) ] ; }
Format a installment for output

@param $installment
@return array
Format a installment for output