# easy-invoice/2.3.8/includes/Helpers/InvoiceFormatter.php

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

- Page: https://pluginprobe.com/plugins/easy-invoice/2.3.8/code/includes/Helpers/InvoiceFormatter.php
- Raw: https://pluginprobe.com/plugins/easy-invoice/2.3.8/raw/includes/Helpers/InvoiceFormatter.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.8/code/includes/Helpers/InvoiceFormatter.php#L10-L20`.

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

namespace EasyInvoice\Helpers;

use EasyInvoice\Traits\CurrencyTrait;

/**
 * Invoice Formatter Class
 * 
 * Handles formatting of invoice values
 */
class InvoiceFormatter {
    use CurrencyTrait;
    
    /**
     * The invoice object
     *
     * @var mixed
     */
    private $invoice;
    
    /**
     * Constructor
     *
     * @param mixed $invoice The invoice object
     */
    public function __construct($invoice = null) {
        $this->invoice = $invoice;
    }
    
    /**
     * 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->invoice);
    }
} 
```
