vendor/shopware/core/Framework/DataAbstractionLayer/Pricing/CashRoundingConfig.php line 7

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Shopware\Core\Framework\DataAbstractionLayer\Pricing;
  3. use Shopware\Core\Framework\Struct\Struct;
  4. class CashRoundingConfig extends Struct
  5. {
  6.     /**
  7.      * @var int
  8.      */
  9.     protected $decimals;
  10.     /**
  11.      * @var float
  12.      */
  13.     protected $interval;
  14.     /**
  15.      * @var bool
  16.      */
  17.     protected $roundForNet;
  18.     public function __construct(int $decimalsfloat $intervalbool $roundForNet)
  19.     {
  20.         $this->decimals $decimals;
  21.         $this->interval $interval;
  22.         $this->roundForNet $roundForNet;
  23.     }
  24.     public function getDecimals(): int
  25.     {
  26.         return $this->decimals;
  27.     }
  28.     public function setDecimals(int $decimals): void
  29.     {
  30.         $this->decimals $decimals;
  31.     }
  32.     public function getInterval(): float
  33.     {
  34.         return $this->interval;
  35.     }
  36.     public function setInterval(float $interval): void
  37.     {
  38.         $this->interval $interval;
  39.     }
  40.     public function roundForNet(): bool
  41.     {
  42.         return $this->roundForNet;
  43.     }
  44.     public function setRoundForNet(bool $roundForNet): void
  45.     {
  46.         $this->roundForNet $roundForNet;
  47.     }
  48. }