<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* DnsitProductCriterion
*
* @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"})})
* @ORM\Entity(repositoryClass="App\Repository\DnsitProductCriterionRepository")
*/
class DnsitProductCriterion
{
/**
* @var int|null
*
* @ORM\Column(name="product_code", type="bigint", nullable=true)
*/
private $productCode;
/**
* @var int|null
*
* @ORM\Column(name="criterion_code", type="bigint", nullable=true)
*/
private $criterionCode;
/**
* @var int|null
*
* @ORM\Column(name="modality_code", type="bigint", nullable=true)
*/
private $modalityCode;
/**
* @var string|null
*
* @ORM\Column(name="value", type="string", length=1000000, nullable=true)
*/
private $value;
/**
* @var float|null
*
* @ORM\Column(name="int_value", type="float", nullable=true)
*/
private $intValue;
/**
* @var \DateTime|null
*
* @ORM\Column(name="date_value", type="datetime", nullable=true)
*/
private $dateValue;
/**
* @var string|null
*
* @ORM\Column(name="geo_value", type="string", length=255, nullable=true)
*/
private $geoValue;
/**
* @var float|null
*
* @ORM\Column(name="min_value", type="float", nullable=true)
*/
private $minValue;
/**
* @var float|null
*
* @ORM\Column(name="max_value", type="float", nullable=true)
*/
private $maxValue;
/**
* @var string|null
*
* @ORM\Column(name="comment", type="text", nullable=true)
*/
private $comment;
/**
* @var int|null
*
* @ORM\Column(name="dn_order", type="bigint", nullable=true)
*/
private $order;
/**
* @var int|null
*
* @ORM\Column(name="entity", type="bigint", nullable=true)
*/
private $entity;
/**
* @var int|null
*
* @ORM\Column(name="marking", type="smallint", nullable=true)
*/
private $marking;
/**
* @var string|null
*
* @ORM\Column(name="params", type="text", nullable=true)
*/
private $params;
/**
* @var \DateTime|null
*
* @ORM\Column(name="created_at", type="datetime", nullable=true)
*/
private $createdAt;
/**
* @var int|null
*
* @ORM\Column(name="created_by", type="bigint", nullable=true)
*/
private $createdBy;
/**
* @var \DateTime|null
*
* @ORM\Column(name="updated_at", type="datetime", nullable=true)
*/
private $updatedAt;
/**
* @var int|null
*
* @ORM\Column(name="updated_by", type="bigint", nullable=true)
*/
private $updatedBy;
/**
* @var int
*
* @ORM\Column(name="id", type="bigint")
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $id;
/**
* @var \App\Entity\DnsitModality
*
* @ORM\ManyToOne(targetEntity="App\Entity\DnsitModality", cascade={"persist"})
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="modality_id", referencedColumnName="id", onDelete="CASCADE")
* })
*/
private $modality;
/**
* @var \App\Entity\DnsitCriterion
*
* @ORM\ManyToOne(targetEntity="App\Entity\DnsitCriterion")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="criterion_id", referencedColumnName="id", onDelete="CASCADE")
* })
*/
private $criterion;
/**
* @var \App\Entity\DnsitProduct
*
* @ORM\ManyToOne(targetEntity="App\Entity\DnsitProduct", inversedBy="productCriterions")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="product_id", referencedColumnName="id", onDelete="CASCADE")
* })
*/
private $product;
/**
* @var \App\Entity\DnsitTranslateProductCriterion
*
* @ORM\ManyToOne(targetEntity="App\Entity\DnsitTranslateProductCriterion")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="translate_id", referencedColumnName="id")
* })
*/
private $translate;
/**
* @ORM\Column(type="json", nullable=true)
*/
private $rawData;
/**
* @ORM\Column(type="date", nullable=true)
*/
private $dateFrom;
/**
* @ORM\Column(type="date", nullable=true)
*/
private $dateTo;
public function getProductCode(): ?int
{
return $this->productCode;
}
public function setProductCode(?int $productCode): self
{
$this->productCode = $productCode;
return $this;
}
public function getCriterionCode(): ?int
{
return $this->criterionCode;
}
public function setCriterionCode(?int $criterionCode): self
{
$this->criterionCode = $criterionCode;
return $this;
}
public function getModalityCode(): ?int
{
return $this->modalityCode;
}
public function setModalityCode(?int $modalityCode): self
{
$this->modalityCode = $modalityCode;
return $this;
}
public function getValue(): ?string
{
return $this->value;
}
public function setValue(?string $value): self
{
$this->value = $value;
return $this;
}
public function getIntValue(): ?float
{
return $this->intValue;
}
public function setIntValue(?float $intValue): self
{
$this->intValue = $intValue;
return $this;
}
public function getDateValue(): ?\DateTimeInterface
{
return $this->dateValue;
}
public function setDateValue(?\DateTimeInterface $dateValue): self
{
$this->dateValue = $dateValue;
return $this;
}
public function getGeoValue(): ?string
{
return $this->geoValue;
}
public function setGeoValue(?string $geoValue): self
{
$this->geoValue = $geoValue;
return $this;
}
public function getMinValue(): ?float
{
return $this->minValue;
}
public function setMinValue(?float $minValue): self
{
$this->minValue = $minValue;
return $this;
}
public function getMaxValue(): ?float
{
return $this->maxValue;
}
public function setMaxValue(?float $maxValue): self
{
$this->maxValue = $maxValue;
return $this;
}
public function getComment(): ?string
{
return $this->comment;
}
public function setComment(?string $comment): self
{
$this->comment = $comment;
return $this;
}
public function getOrder(): ?int
{
return $this->order;
}
public function setOrder(?int $order): self
{
$this->order = $order;
return $this;
}
public function getEntity(): ?int
{
return $this->entity;
}
public function setEntity(?int $entity): self
{
$this->entity = $entity;
return $this;
}
public function getMarking(): ?int
{
return $this->marking;
}
public function setMarking(?int $marking): self
{
$this->marking = $marking;
return $this;
}
public function getParams(): ?string
{
return $this->params;
}
public function setParams(?string $params): self
{
$this->params = $params;
return $this;
}
public function getCreatedAt(): ?\DateTimeInterface
{
return $this->createdAt;
}
public function setCreatedAt(?\DateTimeInterface $createdAt): self
{
if(! $createdAt instanceof \Datetime){
$createdAt = \Datetime::createFromFormat("d/m/Y H:i:s",$createdAt);
}
$this->createdAt = $createdAt;
return $this;
}
public function getCreatedBy(): ?int
{
return $this->createdBy;
}
public function setCreatedBy(?int $createdBy): self
{
$this->createdBy = $createdBy;
return $this;
}
public function getUpdatedAt(): ?\DateTimeInterface
{
return $this->updatedAt;
}
public function setUpdatedAt(?\DateTimeInterface $updatedAt): self
{
if(! $updatedAt instanceof \Datetime){
$updatedAt = \Datetime::createFromFormat("d/m/Y H:i:s",$updatedAt);
}
$this->updatedAt = $updatedAt;
return $this;
}
public function getUpdatedBy(): ?int
{
return $this->updatedBy;
}
public function setUpdatedBy(?int $updatedBy): self
{
$this->updatedBy = $updatedBy;
return $this;
}
public function getId(): ?int
{
return $this->id;
}
public function getModality(): ?DnsitModality
{
return $this->modality;
}
public function setModality(?DnsitModality $modality): self
{
$this->modality = $modality;
return $this;
}
public function getCriterion(): ?DnsitCriterion
{
return $this->criterion;
}
public function setCriterion(?DnsitCriterion $criterion): self
{
$this->criterion = $criterion;
return $this;
}
public function getProduct(): ?DnsitProduct
{
return $this->product;
}
public function setProduct(?DnsitProduct $product): self
{
$this->product = $product;
return $this;
}
public function getTranslate(): ?DnsitTranslateProductCriterion
{
return $this->translate;
}
public function setTranslate(?DnsitTranslateProductCriterion $translate): self
{
$this->translate = $translate;
return $this;
}
public function __toString(){
return "DnsitProductCriterion";
}
public function getRawData(): ?array
{
return $this->rawData;
}
public function setRawData(?array $rawData): self
{
$this->rawData = $rawData;
return $this;
}
public function getDateFrom(): ?\DateTimeInterface
{
return $this->dateFrom;
}
public function setDateFrom(?\DateTimeInterface $dateFrom): self
{
$this->dateFrom = $dateFrom;
return $this;
}
public function getDateTo(): ?\DateTimeInterface
{
return $this->dateTo;
}
public function setDateTo(?\DateTimeInterface $dateTo): self
{
$this->dateTo = $dateTo;
return $this;
}
}