custom/plugins/AcrisPromotionCS/src/Core/Checkout/Cart/Price/Struct/AcrisListPrice.php line 8

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Acris\Promotion\Core\Checkout\Cart\Price\Struct;
  3. use Shopware\Core\Checkout\Cart\Price\Struct\ListPrice;
  4. use Shopware\Core\Framework\Util\FloatComparator;
  5. class AcrisListPrice extends ListPrice
  6. {
  7.     /**
  8.      * @var float
  9.      */
  10.     protected $price;
  11.     /**
  12.      * @var float
  13.      */
  14.     protected $discount;
  15.     /**
  16.      * @var float
  17.      */
  18.     protected $percentage;
  19.     public function __construct(float $pricefloat $discountfloat $percentage)
  20.     {
  21.         $this->price FloatComparator::cast($price);
  22.         $this->discount FloatComparator::cast($discount);
  23.         $this->percentage FloatComparator::cast($percentage);
  24.     }
  25. }