vendor/shopware/core/System/DeliveryTime/DeliveryTimeEntity.php line 12

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Shopware\Core\System\DeliveryTime;
  3. use Shopware\Core\Checkout\Shipping\ShippingMethodCollection;
  4. use Shopware\Core\Content\Product\ProductCollection;
  5. use Shopware\Core\Framework\DataAbstractionLayer\Entity;
  6. use Shopware\Core\Framework\DataAbstractionLayer\EntityCollection;
  7. use Shopware\Core\Framework\DataAbstractionLayer\EntityCustomFieldsTrait;
  8. use Shopware\Core\Framework\DataAbstractionLayer\EntityIdTrait;
  9. class DeliveryTimeEntity extends Entity
  10. {
  11.     use EntityIdTrait;
  12.     use EntityCustomFieldsTrait;
  13.     public const DELIVERY_TIME_DAY 'day';
  14.     public const DELIVERY_TIME_WEEK 'week';
  15.     public const DELIVERY_TIME_MONTH 'month';
  16.     /**
  17.      * @var string|null
  18.      */
  19.     protected $name;
  20.     /**
  21.      * @var int
  22.      */
  23.     protected $min;
  24.     /**
  25.      * @var int
  26.      */
  27.     protected $max;
  28.     /**
  29.      * @var string
  30.      */
  31.     protected $unit;
  32.     /**
  33.      * @var ShippingMethodCollection|null
  34.      */
  35.     protected $shippingMethods;
  36.     /**
  37.      * @var EntityCollection
  38.      */
  39.     protected $translations;
  40.     /**
  41.      * @var ProductCollection|null
  42.      */
  43.     protected $products;
  44.     public function getName(): ?string
  45.     {
  46.         return $this->name;
  47.     }
  48.     public function setName(string $name): void
  49.     {
  50.         $this->name $name;
  51.     }
  52.     public function getMin(): int
  53.     {
  54.         return $this->min;
  55.     }
  56.     public function setMin(int $min): void
  57.     {
  58.         $this->min $min;
  59.     }
  60.     public function getMax(): int
  61.     {
  62.         return $this->max;
  63.     }
  64.     public function setMax(int $max): void
  65.     {
  66.         $this->max $max;
  67.     }
  68.     public function getUnit(): string
  69.     {
  70.         return $this->unit;
  71.     }
  72.     public function setUnit(string $unit): void
  73.     {
  74.         $this->unit $unit;
  75.     }
  76.     public function getShippingMethods(): ?ShippingMethodCollection
  77.     {
  78.         return $this->shippingMethods;
  79.     }
  80.     public function setShippingMethods(ShippingMethodCollection $shippingMethods): void
  81.     {
  82.         $this->shippingMethods $shippingMethods;
  83.     }
  84.     public function getTranslations(): ?EntityCollection
  85.     {
  86.         return $this->translations;
  87.     }
  88.     public function setTranslations(EntityCollection $translations): void
  89.     {
  90.         $this->translations $translations;
  91.     }
  92.     public function getProducts(): ?ProductCollection
  93.     {
  94.         return $this->products;
  95.     }
  96.     public function setProducts(ProductCollection $products): void
  97.     {
  98.         $this->products $products;
  99.     }
  100. }