for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* PHP Billing Library
*
* @link https://github.com/hiqdev/php-billing
* @package php-billing
* @license BSD-3-Clause
* @copyright Copyright (c) 2017-2018, HiQDev (http://hiqdev.com/)
*/
namespace hiqdev\php\billing\charge\modifiers;
use hiqdev\php\billing\action\ActionInterface;
use hiqdev\php\billing\bill\BillInterface;
use hiqdev\php\billing\price\PriceInterface;
use hiqdev\php\units\QuantityInterface;
use Money\Money;
* Growing discount.
* @author Andrii Vasyliev <[email protected]>
class GrowingDiscount extends Discount
{
* @var int|Money
protected $step;
protected $start;
public function __construct($step, $start = null, array $addons = [])
parent::__construct($addons);
$this->step = $step;
$this->start = $start;
}