Module DigressivePrice
This commit is contained in:
118
local/modules/DigressivePrice/Event/DigressivePriceFullEvent.php
Normal file
118
local/modules/DigressivePrice/Event/DigressivePriceFullEvent.php
Normal file
@@ -0,0 +1,118 @@
|
||||
<?php
|
||||
|
||||
namespace DigressivePrice\Event;
|
||||
|
||||
/**
|
||||
* Class DigressivePriceFullEvent
|
||||
* @package DigressivePrice\Event
|
||||
* @author Etienne PERRIERE <eperriere@openstudio.fr> - Nexxpix - OpenStudio
|
||||
*/
|
||||
class DigressivePriceFullEvent extends DigressivePriceEvent
|
||||
{
|
||||
|
||||
protected $id;
|
||||
|
||||
public function __construct(
|
||||
$id,
|
||||
$productId,
|
||||
$price,
|
||||
$promoPrice,
|
||||
$quantityFrom,
|
||||
$quantityTo
|
||||
) {
|
||||
$this->id = $id;
|
||||
$this->productId = $productId;
|
||||
$this->price = $price;
|
||||
$this->promoPrice = $promoPrice;
|
||||
$this->quantityFrom = $quantityFrom;
|
||||
$this->quantityTo = $quantityTo;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function getId()
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function getProductId()
|
||||
{
|
||||
return $this->productId;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mixed $productId
|
||||
*/
|
||||
public function setProductId($productId)
|
||||
{
|
||||
$this->productId = $productId;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function getPrice()
|
||||
{
|
||||
return $this->price;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mixed $price
|
||||
*/
|
||||
public function setPrice($price)
|
||||
{
|
||||
$this->price = $price;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function getPromoPrice()
|
||||
{
|
||||
return $this->promoPrice;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mixed $promoPrice
|
||||
*/
|
||||
public function setPromoPrice($promoPrice)
|
||||
{
|
||||
$this->promoPrice = $promoPrice;
|
||||
}
|
||||
|
||||
/**
|
||||
* @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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user