for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace WSW\SiftScience\Entities;
use WSW\Money\Money;
use WSW\Money\Percentage;
/**
* Class Discount
*
* @package WSW\SiftScience\Entities
* @author Ronaldo Matos Rodrigues <[email protected]>
*/
class Discount
{
* @var Percentage
private $percentage;
* @var Money
private $amount;
private $minimumPurchaseAmount;
* @return Percentage
public function getPercentage()
return $this->percentage;
}
* @param Percentage $percentage
* @return Discount
public function setPercentage(Percentage $percentage)
$this->percentage = $percentage;
return $this;
* @return Money
public function getAmount()
return $this->amount;
* @param Money $amount
public function setAmount(Money $amount)
$this->amount = $amount;
public function getMinimumPurchaseAmount()
return $this->minimumPurchaseAmount;
* @param Money $minimumPurchaseAmount
public function setMinimumPurchaseAmount(Money $minimumPurchaseAmount)
$this->minimumPurchaseAmount = $minimumPurchaseAmount;