src/Entity/ProductLangParam.php line 27

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