private function formatOutput($installments)
    {
        $response = $this->getOptions();
        foreach($installments as $installment) {
            $response['installments'][] = $this->formatInstallments($installment);
        }
        return $response;
    }
private function formatOutput($installments)
    {
        $response = $this->getOptions();
        foreach($installments as $installment) {
            $response['installments'][] = $this->formatInstallments($installment);
        }
        return $response;
    }
private function formatOutput ( $ installments ) { $ response = $ this -> getOptions ( ) ; foreach ( $ installments as $ installment ) { $ response [ 'installments' ] [ ] = $ this -> formatInstallments ( $ installment ) ; } return $ response ; }
Format the installment to the be show in the view
@param  array $installments
@return array
Format the installment to the be show in the view