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

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