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

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. /**
  5.  * @package core
  6.  */
  7. class CashRoundingConfig extends Struct
  8. {
  9.     /**
  10.      * @var int
  11.      */
  12.     protected $decimals;
  13.     /**
  14.      * @var float
  15.      */
  16.     protected $interval;
  17.     /**
  18.      * @var bool
  19.      */
  20.     protected $roundForNet;
  21.     public function __construct(int $decimalsfloat $intervalbool $roundForNet)
  22.     {
  23.         $this->decimals $decimals;
  24.         $this->interval $interval;
  25.         $this->roundForNet $roundForNet;
  26.     }
  27.     public function getDecimals(): int
  28.     {
  29.         return $this->decimals;
  30.     }
  31.     public function setDecimals(int $decimals): void
  32.     {
  33.         $this->decimals $decimals;
  34.     }
  35.     public function getInterval(): float
  36.     {
  37.         return $this->interval;
  38.     }
  39.     public function setInterval(float $interval): void
  40.     {
  41.         $this->interval $interval;
  42.     }
  43.     public function roundForNet(): bool
  44.     {
  45.         return $this->roundForNet;
  46.     }
  47.     public function setRoundForNet(bool $roundForNet): void
  48.     {
  49.         $this->roundForNet $roundForNet;
  50.     }
  51. }