src/Entity/ProductLangParam.php line 23

Open in your IDE?
  1. <?php
  2. // src/Acme/UserBundle/Entity/User.php
  3. namespace App\Entity;
  4. use Knp\DoctrineBehaviors\Contract\Entity\SoftDeletableInterface;
  5. use Knp\DoctrineBehaviors\Model\SoftDeletable\SoftDeletableTrait;
  6. use Knp\DoctrineBehaviors\Contract\Entity\TimestampableInterface;
  7. use Knp\DoctrineBehaviors\Model\Timestampable\TimestampableTrait;
  8. use Knp\DoctrineBehaviors\Contract\Entity\BlameableInterface;
  9. use Knp\DoctrineBehaviors\Model\Blameable\BlameableTrait;
  10. use App\Model\LangParamInterface;
  11. use App\Model\LangParamRelationInterface;
  12. use Doctrine\ORM\Mapping as ORM;
  13. /**
  14.  * @Doctrine\ORM\Mapping\Entity
  15.  * @Doctrine\ORM\Mapping\Table(name="product_lang_param")
  16.  */
  17. class ProductLangParam implements LangParamRelationInterfaceBlameableInterfaceTimestampableInterfaceSoftDeletableInterface  {
  18.     use BlameableTrait;
  19.     use TimestampableTrait;
  20.     use SoftDeletableTrait;
  21.     /**
  22.      * @var integer
  23.      *
  24.      * @ORM\Column(name="id", type="integer", nullable=false)
  25.      * @ORM\Id
  26.      * @ORM\GeneratedValue(strategy="IDENTITY")
  27.      */
  28.     private $id;
  29.     /**
  30.      * @ORM\ManyToOne(targetEntity="App\Entity\Product", inversedBy="langParams")
  31.      * @ORM\JoinColumn(name="product_id", referencedColumnName="id")
  32.      */
  33.     protected $product;
  34.     /**
  35.      * @ORM\ManyToOne(targetEntity="App\Entity\Language")
  36.      * @ORM\JoinColumn(name="language", referencedColumnName="id")
  37.      */
  38.     protected $language;
  39.     /**
  40.      * @Doctrine\ORM\Mapping\Column(type="boolean", nullable=true)
  41.      */
  42.     protected $visible true;
  43.     /**
  44.      * @var string
  45.      *
  46.      * @ORM\Column(name="price_description", type="text", nullable=true)
  47.      */
  48.     private $priceDescription;
  49.     /**
  50.      * @Doctrine\ORM\Mapping\Column(type="boolean", nullable=true)
  51.      */
  52.     protected $promotion false;
  53.     /**
  54.      * @Doctrine\ORM\Mapping\Column(name="is_new", type="boolean", nullable=true)
  55.      */
  56.     protected $new false;
  57.     /**
  58.      * @Doctrine\ORM\Mapping\Column(name="bestseller", type="boolean", nullable=true)
  59.      */
  60.     protected $bestseller false;
  61.     /**
  62.      * @Doctrine\ORM\Mapping\Column(type="boolean", nullable=true)
  63.      */
  64.     protected $promoteOneHomepage false;
  65.     /**
  66.      * @Doctrine\ORM\Mapping\Column(type="boolean", nullable=true)
  67.      */
  68.     protected $readyForPublication false;
  69.     /**
  70.      * @Doctrine\ORM\Mapping\Column(type="boolean", nullable=true)
  71.      */
  72.     protected $sale false;
  73.     /**
  74.      * @Doctrine\ORM\Mapping\Column(name="rating_value", type="float", nullable=true)
  75.      */
  76.     protected $ratingValue;
  77.     /**
  78.      * @Doctrine\ORM\Mapping\Column(name="review_count", type="float", nullable=true)
  79.      */
  80.     protected $reviewCount;
  81.     /**
  82.      * @Doctrine\ORM\Mapping\Column(name="price_change", type="float", nullable=true)
  83.      */
  84.     protected $priceChange;
  85.     /**
  86.      * @Doctrine\ORM\Mapping\Column(name="priority", type="integer", nullable=true)
  87.      */
  88.     protected $priority;
  89.     /**
  90.      * @ORM\ManyToOne(targetEntity="App\Entity\ProductVat", cascade={"all"})
  91.      * @ORM\JoinColumn(name="vat_id", referencedColumnName="id", onDelete="CASCADE")
  92.      */
  93.     protected $vat;
  94.     /**
  95.      * @ORM\Column(name="price_crossed", type="text", nullable=true)
  96.      */
  97.     protected $priceCrossed;
  98.     /**
  99.      * @ORM\Column(name="omnibus_price", type="text", nullable=true)
  100.      */
  101.     protected $omnibusPrice;
  102.     /**
  103.      * @Doctrine\ORM\Mapping\Column(name="promotion_icon", type="boolean", options={"default"=0}, nullable=true)
  104.      */
  105.     protected $promotionIcon;
  106.     /**
  107.      * @ORM\ManyToOne(targetEntity="App\Entity\Availability", cascade={"all"})
  108.      * @ORM\JoinColumn(name="availability_id", referencedColumnName="id", onDelete="CASCADE")
  109.      */
  110.     protected $availability;
  111.     /**
  112.      * @ORM\ManyToOne(targetEntity="App\Entity\ProductProducer", cascade={"all"})
  113.      * @ORM\JoinColumn(name="product_producer_id", referencedColumnName="id", onDelete="CASCADE")
  114.      */
  115.     protected $productProducer;
  116.     /**
  117.      * Net price!
  118.      * @Doctrine\ORM\Mapping\Column(type="decimal", precision=10, scale=2, nullable=true, name="promo_price")
  119.      */
  120.     protected $promoPrice;
  121.     public function getProductProducer(): ?ProductProducer
  122.     {
  123.         return $this->productProducer;
  124.     }
  125.     public function setProductProducer(?ProductProducer $productProducer): self
  126.     {
  127.         $this->productProducer $productProducer;
  128.         return $this;
  129.     }
  130.     /**
  131.      * @return mixed
  132.      */
  133.     public function getPromotionIcon()
  134.     {
  135.         return $this->promotionIcon;
  136.     }
  137.     /**
  138.      * @param mixed $promotionIcon
  139.      */
  140.     public function setPromotionIcon($promotionIcon)
  141.     {
  142.         $this->promotionIcon $promotionIcon;
  143.     }
  144.     /**
  145.      * @return mixed
  146.      */
  147.     public function getPriceCrossed()
  148.     {
  149.         return $this->priceCrossed;
  150.     }
  151.     /**
  152.      * @param mixed $priceCrossed
  153.      */
  154.     public function setPriceCrossed($priceCrossed): void
  155.     {
  156.         $this->priceCrossed $priceCrossed;
  157.     }
  158.     public function getId(): ?int
  159.     {
  160.         return $this->id;
  161.     }
  162.     public function getLanguage(): ?Language
  163.     {
  164.         return $this->language;
  165.     }
  166.     public function setLanguage(?Language $language): self
  167.     {
  168.         $this->language $language;
  169.         return $this;
  170.     }
  171.     public function getVisible(): ?bool
  172.     {
  173.         return $this->visible;
  174.     }
  175.     public function setVisible(?bool $visible): self
  176.     {
  177.         $this->visible $visible;
  178.         return $this;
  179.     }
  180.     public function getPromotion(): ?bool
  181.     {
  182.         return $this->promotion;
  183.     }
  184.     public function setPromotion(?bool $promotion): self
  185.     {
  186.         $this->promotion $promotion;
  187.         return $this;
  188.     }
  189.     public function getPromoteOneHomepage(): ?bool
  190.     {
  191.         return $this->promoteOneHomepage;
  192.     }
  193.     public function setPromoteOneHomepage(?bool $promoteOneHomepage): self
  194.     {
  195.         $this->promoteOneHomepage $promoteOneHomepage;
  196.         return $this;
  197.     }
  198.     public function getSale(): ?bool
  199.     {
  200.         return $this->sale;
  201.     }
  202.     public function setSale(?bool $sale): self
  203.     {
  204.         $this->sale $sale;
  205.         return $this;
  206.     }
  207.     public function getRatingValue(): ?float
  208.     {
  209.         return $this->ratingValue;
  210.     }
  211.     public function setRatingValue(?float $ratingValue): self
  212.     {
  213.         $this->ratingValue $ratingValue;
  214.         return $this;
  215.     }
  216.     public function getReviewCount(): ?float
  217.     {
  218.         return $this->reviewCount;
  219.     }
  220.     public function setReviewCount(?float $reviewCount): self
  221.     {
  222.         $this->reviewCount $reviewCount;
  223.         return $this;
  224.     }
  225.     public function getProduct(): ?Product
  226.     {
  227.         return $this->product;
  228.     }
  229.     public function setProduct(?Product $product): self
  230.     {
  231.         $this->product $product;
  232.         return $this;
  233.     }
  234.     public function getVat(): ?ProductVat
  235.     {
  236.         return $this->vat;
  237.     }
  238.     public function setVat(?ProductVat $vat): self
  239.     {
  240.         $this->vat $vat;
  241.         return $this;
  242.     }
  243.     public function getNew(): ?bool
  244.     {
  245.         return $this->new;
  246.     }
  247.     public function setNew(?bool $new): self
  248.     {
  249.         $this->new $new;
  250.         return $this;
  251.     }
  252.     public function getBestseller(): ?bool
  253.     {
  254.         return $this->bestseller;
  255.     }
  256.     public function setBestseller(?bool $bestseller): self
  257.     {
  258.         $this->bestseller $bestseller;
  259.         return $this;
  260.     }
  261.     public function getPriority(): ?int
  262.     {
  263.         return $this->priority;
  264.     }
  265.     public function setPriority(?int $priority): self
  266.     {
  267.         $this->priority $priority;
  268.         return $this;
  269.     }
  270.     public function getPriceDescription(): ?string
  271.     {
  272.         return $this->priceDescription;
  273.     }
  274.     public function setPriceDescription(?string $priceDescription): self
  275.     {
  276.         $this->priceDescription $priceDescription;
  277.         return $this;
  278.     }
  279.     public function getAvailability(): ?Availability
  280.     {
  281.         return $this->availability;
  282.     }
  283.     public function setAvailability(?Availability $availability): self
  284.     {
  285.         $this->availability $availability;
  286.         return $this;
  287.     }
  288.     /**
  289.      * @return mixed
  290.      */
  291.     public function getOmnibusPrice()
  292.     {
  293.         return $this->omnibusPrice;
  294.     }
  295.     /**
  296.      * @param mixed $omnibusPrice
  297.      */
  298.     public function setOmnibusPrice($omnibusPrice): void
  299.     {
  300.         $this->omnibusPrice $omnibusPrice;
  301.     }
  302.     /**
  303.      * @return mixed
  304.      */
  305.     public function getPriceChange()
  306.     {
  307.         return $this->priceChange;
  308.     }
  309.     /**
  310.      * @param mixed $priceChange
  311.      */
  312.     public function setPriceChange($priceChange): void
  313.     {
  314.         $this->priceChange $priceChange;
  315.     }
  316.     /**
  317.      * @return bool
  318.      */
  319.     public function isReadyForPublication()
  320.     {
  321.         return $this->readyForPublication;
  322.     }
  323.     /**
  324.      * @param bool $readyForPublication
  325.      */
  326.     public function setReadyForPublication($readyForPublication)
  327.     {
  328.         $this->readyForPublication $readyForPublication;
  329.     }
  330.     public function getReadyForPublication(): ?bool
  331.     {
  332.         return $this->readyForPublication;
  333.     }
  334.     /**
  335.      * @return mixed
  336.      */
  337.     public function getPromoPrice()
  338.     {
  339.         return $this->promoPrice;
  340.     }
  341.     /**
  342.      * @param mixed $promoPrice
  343.      */
  344.     public function setPromoPrice($promoPrice): void
  345.     {
  346.         $this->promoPrice $promoPrice;
  347.     }
  348. }