# easy-invoice/2.3.7/includes/Helpers/QuoteFormatter.php

Easy Invoice – Invoice Generator, PDF Quotes &amp; Payments, version 2.3.7. 46 lines.

- Page: https://pluginprobe.com/plugins/easy-invoice/2.3.7/code/includes/Helpers/QuoteFormatter.php
- Raw: https://pluginprobe.com/plugins/easy-invoice/2.3.7/raw/includes/Helpers/QuoteFormatter.php
- Modified: 2025-08-14T09:51:16+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/easy-invoice/2.3.7/code/includes/Helpers/QuoteFormatter.php#L10-L20`.

```php
<?php
/**
 * Quote Formatter Helper Class
 *
 * @package Easy_Invoice
 * @subpackage Helpers
 */

namespace EasyInvoice\Helpers;

use EasyInvoice\Traits\CurrencyTrait;

/**
 * Quote Formatter Class
 * 
 * Handles formatting of quote values
 */
class QuoteFormatter {
    use CurrencyTrait;
    
    /**
     * The quote object
     *
     * @var mixed
     */
    private $quote;
    
    /**
     * Constructor
     *
     * @param mixed $quote The quote object
     */
    public function __construct($quote = null) {
        $this->quote = $quote;
    }
    
    /**
     * Format a currency amount
     * 
     * @param float $amount The amount to format
     * @return string The formatted amount
     */
    public function format($amount) {
        return $this->formatCurrency($amount, $this->quote);
    }
} 
```
