<?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);
    }
} 