Files
domokits/local/modules/DigressivePrice/Event/DigressivePriceEvent.php
2019-11-21 12:25:31 +01:00

97 lines
1.7 KiB
PHP

<?php
namespace DigressivePrice\Event;
use Thelia\Core\Event\ActionEvent;
/**
* Class DigressivePriceEvent
* @package DigressivePrice\Event
* @author Etienne PERRIERE <eperriere@openstudio.fr> - Nexxpix - OpenStudio
*/
class DigressivePriceEvent extends ActionEvent
{
protected $productId;
protected $discount;
protected $quantityFrom;
protected $quantityTo;
public function __construct(
$productId,
$discount,
$quantityFrom,
$quantityTo
) {
$this->productId = $productId;
$this->discount = $discount;
$this->quantityFrom = $quantityFrom;
$this->quantityTo = $quantityTo;
}
/**
* @return mixed
*/
public function getProductId()
{
return $this->productId;
}
/**
* @param mixed $productId
*/
public function setProductId($productId)
{
$this->productId = $productId;
}
/**
* @return mixed
*/
public function getDiscount()
{
return $this->discount;
}
/**
* @param mixed $discount
* @return $this
*/
public function setDiscount($discount)
{
$this->discount = $discount;
return $this;
}
/**
* @return mixed
*/
public function getQuantityFrom()
{
return $this->quantityFrom;
}
/**
* @param mixed $quantityFrom
*/
public function setQuantityFrom($quantityFrom)
{
$this->quantityFrom = $quantityFrom;
}
/**
* @return mixed
*/
public function getQuantityTo()
{
return $this->quantityTo;
}
/**
* @param mixed $quantityTo
*/
public function setQuantityTo($quantityTo)
{
$this->quantityTo = $quantityTo;
}
}