src/Entity/DnsitCoupledProduct.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * DnsitCoupledProduct
  6.  *
  7.  * @ORM\Table(name="dnsit_coupled_product")
  8.  * @ORM\Entity(repositoryClass="App\Repository\DnsitCoupledProductRepository")
  9.  */
  10. class DnsitCoupledProduct
  11. {
  12.     /**
  13.      * @var int|null
  14.      *
  15.      * @ORM\Column(name="couple_type", type="integer", nullable=true)
  16.      */
  17.     private $coupleType;
  18.     /**
  19.      * @var int|null
  20.      *
  21.      * @ORM\Column(name="entite", type="bigint", nullable=true)
  22.      */
  23.     private $entite;
  24.     /**
  25.      * @var int|null
  26.      *
  27.      * @ORM\Column(name="marquage", type="smallint", nullable=true)
  28.      */
  29.     private $marquage;
  30.     /**
  31.      * @var string|null
  32.      *
  33.      * @ORM\Column(name="params", type="text", nullable=true)
  34.      */
  35.     private $params;
  36.     /**
  37.      * @var \DateTime|null
  38.      *
  39.      * @ORM\Column(name="created_at", type="datetime", nullable=true)
  40.      */
  41.     private $createdAt;
  42.     /**
  43.      * @var int|null
  44.      *
  45.      * @ORM\Column(name="created_by", type="bigint", nullable=true)
  46.      */
  47.     private $createdBy;
  48.     /**
  49.      * @var \DateTime|null
  50.      *
  51.      * @ORM\Column(name="updated_at", type="datetime", nullable=true)
  52.      */
  53.     private $updatedAt;
  54.     /**
  55.      * @var int|null
  56.      *
  57.      * @ORM\Column(name="updated_by", type="bigint", nullable=true)
  58.      */
  59.     private $updatedBy;
  60.     /**
  61.      * @var int|null
  62.      *
  63.      * @ORM\Column(name="coupled_product_code", type="bigint", nullable=true)
  64.      */
  65.     private $coupledProductCode;
  66.     /**
  67.      * @var int|null
  68.      *
  69.      * @ORM\Column(name="product_code", type="bigint", nullable=true)
  70.      */
  71.     private $productCode;
  72.     /**
  73.      * @var int
  74.      *
  75.      * @ORM\Column(name="id", type="bigint")
  76.      * @ORM\Id
  77.      * @ORM\GeneratedValue(strategy="IDENTITY")
  78.      */
  79.     private $id;
  80.     /**
  81.      * @var \App\Entity\DnsitProduct
  82.      *
  83.      * @ORM\ManyToOne(targetEntity="App\Entity\DnsitProduct", inversedBy="coupledCoupledProducts" )
  84.      * @ORM\JoinColumns({
  85.      *   @ORM\JoinColumn(name="coupled_product_id", referencedColumnName="id", onDelete="CASCADE")
  86.      * })
  87.      */
  88.     private $coupledProduct;
  89.     /**
  90.      * @var \App\Entity\DnsitTranslateProduct
  91.      *
  92.      * @ORM\ManyToOne(targetEntity="App\Entity\DnsitTranslateProduct", inversedBy="coupledCoupledProducts")
  93.      * @ORM\JoinColumns({
  94.      *   @ORM\JoinColumn(name="coupled_translate_product_id", referencedColumnName="id", onDelete="CASCADE")
  95.      * })
  96.      */
  97.     private $coupledTranslateProduct;
  98.     /**
  99.      * @var \App\Entity\DnsitProduct
  100.      *
  101.      * @ORM\ManyToOne(targetEntity="App\Entity\DnsitProduct", inversedBy="coupledProducts")
  102.      * @ORM\JoinColumns({
  103.      *   @ORM\JoinColumn(name="product_id", referencedColumnName="id", onDelete="CASCADE")
  104.      * })
  105.      */
  106.     private $product;
  107.     /**
  108.      * @var \App\Entity\DnsitTranslateProduct
  109.      *
  110.      * @ORM\ManyToOne(targetEntity="App\Entity\DnsitTranslateProduct", inversedBy="coupledProducts")
  111.      * @ORM\JoinColumns({
  112.      *   @ORM\JoinColumn(name="translate_product_id", referencedColumnName="id", onDelete="CASCADE")
  113.      * })
  114.      */
  115.     private $translateProduct;
  116.     /**
  117.      * @var int|null
  118.      *
  119.      * @ORM\Column(name="ordering", type="bigint", nullable=true)
  120.      */
  121.     private $ordering;
  122.     public function __toString(){
  123.                                                                                                return "";
  124.                                                                                            }
  125.     public function getCoupleType(): ?int
  126.     {
  127.         return $this->coupleType;
  128.     }
  129.     public function setCoupleType(?int $coupleType): self
  130.     {
  131.         $this->coupleType $coupleType;
  132.         return $this;
  133.     }
  134.     public function getEntite(): ?int
  135.     {
  136.         return $this->entite;
  137.     }
  138.     public function setEntite(?int $entite): self
  139.     {
  140.         $this->entite $entite;
  141.         return $this;
  142.     }
  143.     public function getMarquage(): ?int
  144.     {
  145.         return $this->marquage;
  146.     }
  147.     public function setMarquage(?int $marquage): self
  148.     {
  149.         $this->marquage $marquage;
  150.         return $this;
  151.     }
  152.     public function getParams(): ?string
  153.     {
  154.         return $this->params;
  155.     }
  156.     public function setParams(?string $params): self
  157.     {
  158.         $this->params $params;
  159.         return $this;
  160.     }
  161.     public function getCreatedAt(): ?\DateTimeInterface
  162.     {
  163.         return $this->createdAt;
  164.     }
  165.     public function setCreatedAt(?\DateTimeInterface $createdAt): self
  166.     {
  167.         $this->createdAt $createdAt;
  168.         return $this;
  169.     }
  170.     public function getCreatedBy(): ?int
  171.     {
  172.         return $this->createdBy;
  173.     }
  174.     public function setCreatedBy(?int $createdBy): self
  175.     {
  176.         $this->createdBy $createdBy;
  177.         return $this;
  178.     }
  179.     public function getUpdatedAt(): ?\DateTimeInterface
  180.     {
  181.         return $this->updatedAt;
  182.     }
  183.     public function setUpdatedAt(?\DateTimeInterface $updatedAt): self
  184.     {
  185.         $this->updatedAt $updatedAt;
  186.         return $this;
  187.     }
  188.     public function getUpdatedBy(): ?int
  189.     {
  190.         return $this->updatedBy;
  191.     }
  192.     public function setUpdatedBy(?int $updatedBy): self
  193.     {
  194.         $this->updatedBy $updatedBy;
  195.         return $this;
  196.     }
  197.     public function getCoupledProductCode(): ?int
  198.     {
  199.         return $this->coupledProductCode;
  200.     }
  201.     public function setCoupledProductCode(?int $coupledProductCode): self
  202.     {
  203.         $this->coupledProductCode $coupledProductCode;
  204.         return $this;
  205.     }
  206.     public function getProductCode(): ?int
  207.     {
  208.         return $this->productCode;
  209.     }
  210.     public function setProductCode(?int $productCode): self
  211.     {
  212.         $this->productCode $productCode;
  213.         return $this;
  214.     }
  215.     public function getId(): ?int
  216.     {
  217.         return $this->id;
  218.     }
  219.     public function getCoupledProduct(): ?DnsitProduct
  220.     {
  221.         return $this->coupledProduct;
  222.     }
  223.     public function setCoupledProduct(?DnsitProduct $coupledProduct): self
  224.     {
  225.         $this->coupledProduct $coupledProduct;
  226.         return $this;
  227.     }
  228.     public function getCoupledTranslateProduct(): ?DnsitTranslateProduct
  229.     {
  230.         return $this->coupledTranslateProduct;
  231.     }
  232.     public function setCoupledTranslateProduct(?DnsitTranslateProduct $coupledTranslateProduct): self
  233.     {
  234.         $this->coupledTranslateProduct $coupledTranslateProduct;
  235.         return $this;
  236.     }
  237.     public function getProduct(): ?DnsitProduct
  238.     {
  239.         return $this->product;
  240.     }
  241.     public function setProduct(?DnsitProduct $product): self
  242.     {
  243.         $this->product $product;
  244.         return $this;
  245.     }
  246.     public function getTranslateProduct(): ?DnsitTranslateProduct
  247.     {
  248.         return $this->translateProduct;
  249.     }
  250.     public function setTranslateProduct(?DnsitTranslateProduct $translateProduct): self
  251.     {
  252.         $this->translateProduct $translateProduct;
  253.         return $this;
  254.     }
  255.     public function getOrdering(): ?int
  256.     {
  257.         return $this->ordering;
  258.     }
  259.     public function setOrdering(?int $ordering): self
  260.     {
  261.         $this->ordering $ordering;
  262.         return $this;
  263.     }
  264. }