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

  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(
  21.         int $decimals,
  22.         float $interval,
  23.         bool $roundForNet
  24.     ) {
  25.         $this->decimals $decimals;
  26.         $this->interval $interval;
  27.         $this->roundForNet $roundForNet;
  28.     }
  29.     public function getDecimals(): int
  30.     {
  31.         return $this->decimals;
  32.     }
  33.     public function setDecimals(int $decimals): void
  34.     {
  35.         $this->decimals $decimals;
  36.     }
  37.     public function getInterval(): float
  38.     {
  39.         return $this->interval;
  40.     }
  41.     public function setInterval(float $interval): void
  42.     {
  43.         $this->interval $interval;
  44.     }
  45.     public function roundForNet(): bool
  46.     {
  47.         return $this->roundForNet;
  48.     }
  49.     public function setRoundForNet(bool $roundForNet): void
  50.     {
  51.         $this->roundForNet $roundForNet;
  52.     }
  53. }