src/Entity/DnsitProductCriterion.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * DnsitProductCriterion
  6.  *
  7.  * @ORM\Table(name="dnsit_product_criterion",    indexes={@ORM\Index(name="search_product_criterion_product_id", columns={"product_id"}), @ORM\Index(name="search_product_criterion_codes_idx", columns={"criterion_code","modality_code"}), @ORM\Index(name="search_product_criterion_procrimod", columns={"product_id","criterion_id","modality_id"})})
  8.  * @ORM\Entity(repositoryClass="App\Repository\DnsitProductCriterionRepository")
  9.  */
  10. class DnsitProductCriterion
  11. {
  12.     /**
  13.      * @var int|null
  14.      *
  15.      * @ORM\Column(name="product_code", type="bigint", nullable=true)
  16.      */
  17.     private $productCode;
  18.     /**
  19.      * @var int|null
  20.      *
  21.      * @ORM\Column(name="criterion_code", type="bigint", nullable=true)
  22.      */
  23.     private $criterionCode;
  24.     /**
  25.      * @var int|null
  26.      *
  27.      * @ORM\Column(name="modality_code", type="bigint", nullable=true)
  28.      */
  29.     private $modalityCode;
  30.     /**
  31.      * @var string|null
  32.      *
  33.      * @ORM\Column(name="value", type="string", length=1000000, nullable=true)
  34.      */
  35.     private $value;
  36.     /**
  37.      * @var float|null
  38.      *
  39.      * @ORM\Column(name="int_value", type="float", nullable=true)
  40.      */
  41.     private $intValue;
  42.     /**
  43.      * @var \DateTime|null
  44.      *
  45.      * @ORM\Column(name="date_value", type="datetime", nullable=true)
  46.      */
  47.     private $dateValue;
  48.     /**
  49.      * @var string|null
  50.      *
  51.      * @ORM\Column(name="geo_value", type="string", length=255, nullable=true)
  52.      */
  53.     private $geoValue;
  54.     /**
  55.      * @var float|null
  56.      *
  57.      * @ORM\Column(name="min_value", type="float", nullable=true)
  58.      */
  59.     private $minValue;
  60.     /**
  61.      * @var float|null
  62.      *
  63.      * @ORM\Column(name="max_value", type="float", nullable=true)
  64.      */
  65.     private $maxValue;
  66.     /**
  67.      * @var string|null
  68.      *
  69.      * @ORM\Column(name="comment", type="text", nullable=true)
  70.      */
  71.     private $comment;
  72.     /**
  73.      * @var int|null
  74.      *
  75.      * @ORM\Column(name="dn_order", type="bigint", nullable=true)
  76.      */
  77.     private $order;
  78.     /**
  79.      * @var int|null
  80.      *
  81.      * @ORM\Column(name="entity", type="bigint", nullable=true)
  82.      */
  83.     private $entity;
  84.     /**
  85.      * @var int|null
  86.      *
  87.      * @ORM\Column(name="marking", type="smallint", nullable=true)
  88.      */
  89.     private $marking;
  90.     /**
  91.      * @var string|null
  92.      *
  93.      * @ORM\Column(name="params", type="text", nullable=true)
  94.      */
  95.     private $params;
  96.     /**
  97.      * @var \DateTime|null
  98.      *
  99.      * @ORM\Column(name="created_at", type="datetime", nullable=true)
  100.      */
  101.     private $createdAt;
  102.     /**
  103.      * @var int|null
  104.      *
  105.      * @ORM\Column(name="created_by", type="bigint", nullable=true)
  106.      */
  107.     private $createdBy;
  108.     /**
  109.      * @var \DateTime|null
  110.      *
  111.      * @ORM\Column(name="updated_at", type="datetime", nullable=true)
  112.      */
  113.     private $updatedAt;
  114.     /**
  115.      * @var int|null
  116.      *
  117.      * @ORM\Column(name="updated_by", type="bigint", nullable=true)
  118.      */
  119.     private $updatedBy;
  120.     /**
  121.      * @var int
  122.      *
  123.      * @ORM\Column(name="id", type="bigint")
  124.      * @ORM\Id
  125.      * @ORM\GeneratedValue(strategy="IDENTITY")
  126.      */
  127.     private $id;
  128.     /**
  129.      * @var \App\Entity\DnsitModality
  130.      *
  131.      * @ORM\ManyToOne(targetEntity="App\Entity\DnsitModality", cascade={"persist"})
  132.      * @ORM\JoinColumns({
  133.      *   @ORM\JoinColumn(name="modality_id", referencedColumnName="id", onDelete="CASCADE")
  134.      * })
  135.      */
  136.     private $modality;
  137.     /**
  138.      * @var \App\Entity\DnsitCriterion
  139.      *
  140.      * @ORM\ManyToOne(targetEntity="App\Entity\DnsitCriterion")
  141.      * @ORM\JoinColumns({
  142.      *   @ORM\JoinColumn(name="criterion_id", referencedColumnName="id", onDelete="CASCADE")
  143.      * })
  144.      */
  145.     private $criterion;
  146.     /**
  147.      * @var \App\Entity\DnsitProduct
  148.      *
  149.      * @ORM\ManyToOne(targetEntity="App\Entity\DnsitProduct", inversedBy="productCriterions")
  150.      * @ORM\JoinColumns({
  151.      *   @ORM\JoinColumn(name="product_id", referencedColumnName="id", onDelete="CASCADE")
  152.      * })
  153.      */
  154.     private $product;
  155.     /**
  156.      * @var \App\Entity\DnsitTranslateProductCriterion
  157.      *
  158.      * @ORM\ManyToOne(targetEntity="App\Entity\DnsitTranslateProductCriterion")
  159.      * @ORM\JoinColumns({
  160.      *   @ORM\JoinColumn(name="translate_id", referencedColumnName="id")
  161.      * })
  162.      */
  163.     private $translate;
  164.     /**
  165.      * @ORM\Column(type="json", nullable=true)
  166.      */
  167.     private $rawData;
  168.     /**
  169.      * @ORM\Column(type="date", nullable=true)
  170.      */
  171.     private $dateFrom;
  172.     /**
  173.      * @ORM\Column(type="date", nullable=true)
  174.      */
  175.     private $dateTo;
  176.     public function getProductCode(): ?int
  177.     {
  178.         return $this->productCode;
  179.     }
  180.     public function setProductCode(?int $productCode): self
  181.     {
  182.         $this->productCode $productCode;
  183.         return $this;
  184.     }
  185.     public function getCriterionCode(): ?int
  186.     {
  187.         return $this->criterionCode;
  188.     }
  189.     public function setCriterionCode(?int $criterionCode): self
  190.     {
  191.         $this->criterionCode $criterionCode;
  192.         return $this;
  193.     }
  194.     public function getModalityCode(): ?int
  195.     {
  196.         return $this->modalityCode;
  197.     }
  198.     public function setModalityCode(?int $modalityCode): self
  199.     {
  200.         $this->modalityCode $modalityCode;
  201.         return $this;
  202.     }
  203.     public function getValue(): ?string
  204.     {
  205.         return $this->value;
  206.     }
  207.     public function setValue(?string $value): self
  208.     {
  209.         $this->value $value;
  210.         return $this;
  211.     }
  212.     public function getIntValue(): ?float
  213.     {
  214.         return $this->intValue;
  215.     }
  216.     public function setIntValue(?float $intValue): self
  217.     {
  218.         $this->intValue $intValue;
  219.         return $this;
  220.     }
  221.     public function getDateValue(): ?\DateTimeInterface
  222.     {
  223.         return $this->dateValue;
  224.     }
  225.     public function setDateValue(?\DateTimeInterface $dateValue): self
  226.     {
  227.         $this->dateValue $dateValue;
  228.         return $this;
  229.     }
  230.     public function getGeoValue(): ?string
  231.     {
  232.         return $this->geoValue;
  233.     }
  234.     public function setGeoValue(?string $geoValue): self
  235.     {
  236.         $this->geoValue $geoValue;
  237.         return $this;
  238.     }
  239.     public function getMinValue(): ?float
  240.     {
  241.         return $this->minValue;
  242.     }
  243.     public function setMinValue(?float $minValue): self
  244.     {
  245.         $this->minValue $minValue;
  246.         return $this;
  247.     }
  248.     public function getMaxValue(): ?float
  249.     {
  250.         return $this->maxValue;
  251.     }
  252.     public function setMaxValue(?float $maxValue): self
  253.     {
  254.         $this->maxValue $maxValue;
  255.         return $this;
  256.     }
  257.     public function getComment(): ?string
  258.     {
  259.         return $this->comment;
  260.     }
  261.     public function setComment(?string $comment): self
  262.     {
  263.         $this->comment $comment;
  264.         return $this;
  265.     }
  266.     public function getOrder(): ?int
  267.     {
  268.         return $this->order;
  269.     }
  270.     public function setOrder(?int $order): self
  271.     {
  272.         $this->order $order;
  273.         return $this;
  274.     }
  275.     public function getEntity(): ?int
  276.     {
  277.         return $this->entity;
  278.     }
  279.     public function setEntity(?int $entity): self
  280.     {
  281.         $this->entity $entity;
  282.         return $this;
  283.     }
  284.     public function getMarking(): ?int
  285.     {
  286.         return $this->marking;
  287.     }
  288.     public function setMarking(?int $marking): self
  289.     {
  290.         $this->marking $marking;
  291.         return $this;
  292.     }
  293.     public function getParams(): ?string
  294.     {
  295.         return $this->params;
  296.     }
  297.     public function setParams(?string $params): self
  298.     {
  299.         $this->params $params;
  300.         return $this;
  301.     }
  302.     public function getCreatedAt(): ?\DateTimeInterface
  303.     {
  304.         return $this->createdAt;
  305.     }
  306.     public function setCreatedAt(?\DateTimeInterface $createdAt): self
  307.     {
  308.         if(! $createdAt instanceof \Datetime){
  309.             $createdAt \Datetime::createFromFormat("d/m/Y H:i:s",$createdAt);
  310.         }
  311.         $this->createdAt $createdAt;
  312.         return $this;
  313.     }
  314.     public function getCreatedBy(): ?int
  315.     {
  316.         return $this->createdBy;
  317.     }
  318.     public function setCreatedBy(?int $createdBy): self
  319.     {
  320.         $this->createdBy $createdBy;
  321.         return $this;
  322.     }
  323.     public function getUpdatedAt(): ?\DateTimeInterface
  324.     {
  325.         return $this->updatedAt;
  326.     }
  327.     public function setUpdatedAt(?\DateTimeInterface $updatedAt): self
  328.     {
  329.         if(! $updatedAt instanceof \Datetime){
  330.             $updatedAt \Datetime::createFromFormat("d/m/Y H:i:s",$updatedAt);
  331.         }
  332.         $this->updatedAt $updatedAt;
  333.         return $this;
  334.     }
  335.     public function getUpdatedBy(): ?int
  336.     {
  337.         return $this->updatedBy;
  338.     }
  339.     public function setUpdatedBy(?int $updatedBy): self
  340.     {
  341.         $this->updatedBy $updatedBy;
  342.         return $this;
  343.     }
  344.     public function getId(): ?int
  345.     {
  346.         return $this->id;
  347.     }
  348.     public function getModality(): ?DnsitModality
  349.     {
  350.         return $this->modality;
  351.     }
  352.     public function setModality(?DnsitModality $modality): self
  353.     {
  354.         $this->modality $modality;
  355.         return $this;
  356.     }
  357.     public function getCriterion(): ?DnsitCriterion
  358.     {
  359.         return $this->criterion;
  360.     }
  361.     public function setCriterion(?DnsitCriterion $criterion): self
  362.     {
  363.         $this->criterion $criterion;
  364.         return $this;
  365.     }
  366.     public function getProduct(): ?DnsitProduct
  367.     {
  368.         return $this->product;
  369.     }
  370.     public function setProduct(?DnsitProduct $product): self
  371.     {
  372.         $this->product $product;
  373.         return $this;
  374.     }
  375.     public function getTranslate(): ?DnsitTranslateProductCriterion
  376.     {
  377.         return $this->translate;
  378.     }
  379.     public function setTranslate(?DnsitTranslateProductCriterion $translate): self
  380.     {
  381.         $this->translate $translate;
  382.         return $this;
  383.     }
  384.     public function __toString(){
  385.         return "DnsitProductCriterion";
  386.     }
  387.     public function getRawData(): ?array
  388.     {
  389.         return $this->rawData;
  390.     }
  391.     public function setRawData(?array $rawData): self
  392.     {
  393.         $this->rawData $rawData;
  394.         return $this;
  395.     }
  396.     public function getDateFrom(): ?\DateTimeInterface
  397.     {
  398.         return $this->dateFrom;
  399.     }
  400.     public function setDateFrom(?\DateTimeInterface $dateFrom): self
  401.     {
  402.         $this->dateFrom $dateFrom;
  403.         return $this;
  404.     }
  405.     public function getDateTo(): ?\DateTimeInterface
  406.     {
  407.         return $this->dateTo;
  408.     }
  409.     public function setDateTo(?\DateTimeInterface $dateTo): self
  410.     {
  411.         $this->dateTo $dateTo;
  412.         return $this;
  413.     }
  414. }