lukepolo/laracart

View on GitHub
src/Contracts/CouponContract.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
<?php

namespace LukePOLO\LaraCart\Contracts;

/**
 * Interface CouponContract.
 */
interface CouponContract
{
    /**
     * CouponContract constructor.
     *
     * @param $code
     * @param $value
     */
    public function __construct($code, $value);

    /**
     * Gets the discount amount.
     *
     * @return number
     */
    public function discount($price);

    /**
     * Displays the type of value it is for the user.
     *
     * @return mixed
     */
    public function displayValue();
}