vendor/shopware/core/Checkout/Shipping/Aggregate/ShippingMethodPrice/ShippingMethodPriceEntity.php line 12

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Shopware\Core\Checkout\Shipping\Aggregate\ShippingMethodPrice;
  3. use Shopware\Core\Checkout\Shipping\ShippingMethodEntity;
  4. use Shopware\Core\Content\Rule\RuleEntity;
  5. use Shopware\Core\Framework\DataAbstractionLayer\Entity;
  6. use Shopware\Core\Framework\DataAbstractionLayer\EntityIdTrait;
  7. use Shopware\Core\Framework\DataAbstractionLayer\Pricing\PriceCollection;
  8. use Shopware\Core\System\Currency\CurrencyEntity;
  9. class ShippingMethodPriceEntity extends Entity
  10. {
  11.     use EntityIdTrait;
  12.     /**
  13.      * @var string
  14.      */
  15.     protected $shippingMethodId;
  16.     /**
  17.      * @var string|null
  18.      */
  19.     protected $ruleId;
  20.     /**
  21.      * @var int|null
  22.      */
  23.     protected $calculation;
  24.     /**
  25.      * @var float|null
  26.      */
  27.     protected $quantityStart;
  28.     /**
  29.      * @var float|null
  30.      */
  31.     protected $quantityEnd;
  32.     /**
  33.      * @var ShippingMethodEntity|null
  34.      */
  35.     protected $shippingMethod;
  36.     /**
  37.      * @var array|null
  38.      */
  39.     protected $customFields;
  40.     /**
  41.      * @var RuleEntity|null
  42.      */
  43.     protected $rule;
  44.     /**
  45.      * @var CurrencyEntity|null
  46.      */
  47.     protected $currency;
  48.     /**
  49.      * @var string|null
  50.      */
  51.     protected $calculationRuleId;
  52.     /**
  53.      * @var RuleEntity|null
  54.      */
  55.     protected $calculationRule;
  56.     /**
  57.      * @var PriceCollection|null
  58.      */
  59.     protected $currencyPrice;
  60.     public function getShippingMethodId(): string
  61.     {
  62.         return $this->shippingMethodId;
  63.     }
  64.     public function setShippingMethodId(string $shippingMethodId): void
  65.     {
  66.         $this->shippingMethodId $shippingMethodId;
  67.     }
  68.     public function getQuantityStart(): ?float
  69.     {
  70.         return $this->quantityStart;
  71.     }
  72.     public function setQuantityStart(float $quantityStart): void
  73.     {
  74.         $this->quantityStart $quantityStart;
  75.     }
  76.     public function getQuantityEnd(): ?float
  77.     {
  78.         return $this->quantityEnd;
  79.     }
  80.     public function setQuantityEnd(float $quantityEnd): void
  81.     {
  82.         $this->quantityEnd $quantityEnd;
  83.     }
  84.     public function getCalculation(): ?int
  85.     {
  86.         return $this->calculation;
  87.     }
  88.     public function setCalculation(int $calculation): void
  89.     {
  90.         $this->calculation $calculation;
  91.     }
  92.     public function getShippingMethod(): ?ShippingMethodEntity
  93.     {
  94.         return $this->shippingMethod;
  95.     }
  96.     public function setShippingMethod(ShippingMethodEntity $shippingMethod): void
  97.     {
  98.         $this->shippingMethod $shippingMethod;
  99.     }
  100.     public function getCustomFields(): ?array
  101.     {
  102.         return $this->customFields;
  103.     }
  104.     public function setCustomFields(?array $customFields): void
  105.     {
  106.         $this->customFields $customFields;
  107.     }
  108.     public function getRuleId(): ?string
  109.     {
  110.         return $this->ruleId;
  111.     }
  112.     public function setRuleId(string $ruleId): void
  113.     {
  114.         $this->ruleId $ruleId;
  115.     }
  116.     public function getRule(): ?RuleEntity
  117.     {
  118.         return $this->rule;
  119.     }
  120.     public function setRule(?RuleEntity $rule): void
  121.     {
  122.         $this->rule $rule;
  123.     }
  124.     public function getCalculationRuleId(): ?string
  125.     {
  126.         return $this->calculationRuleId;
  127.     }
  128.     public function setCalculationRuleId(?string $calculationRuleId): void
  129.     {
  130.         $this->calculationRuleId $calculationRuleId;
  131.     }
  132.     public function getCalculationRule(): ?RuleEntity
  133.     {
  134.         return $this->calculationRule;
  135.     }
  136.     public function setCalculationRule(?RuleEntity $calculationRule): void
  137.     {
  138.         $this->calculationRule $calculationRule;
  139.     }
  140.     public function getCurrencyPrice(): ?PriceCollection
  141.     {
  142.         return $this->currencyPrice;
  143.     }
  144.     public function setCurrencyPrice(?PriceCollection $price): void
  145.     {
  146.         $this->currencyPrice $price;
  147.     }
  148. }