LukePOLO\LaraCart\CartFee::__construct PHP Method

__construct() public method

CartFee constructor.
public __construct ( $amount, $taxable = false, array $options = [] )
$amount
$taxable
$options array
    public function __construct($amount, $taxable = false, $options = [])
    {
        $this->amount = floatval($amount);
        $this->taxable = $taxable;
        $this->tax = isset($options['tax']) ? $options['tax'] == 0 ? config('laracart.tax') : $options['tax'] : config('laracart.tax');
        $this->options = $options;
    }