src/Entity/DeeplTranslationConfig.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\Common\Collections\ArrayCollection;
  4. use Doctrine\Common\Collections\Collection;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ORM\Entity (repositoryClass="App\Repository\DeeplTranslationConfigRepository")
  8.  */
  9. class DeeplTranslationConfig
  10. {
  11.     /**
  12.      * @ORM\Id()
  13.      * @ORM\GeneratedValue()
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\Column(type="json", nullable=true, options={"comment":"Objet type ditem avec donnees"})
  19.      */
  20.     private $itemType;
  21.     /**
  22.      * @ORM\Column(type="json", nullable=true)
  23.      */
  24.     private $criterion;
  25.     /**
  26.      * @ORM\Column(type="json", nullable=true)
  27.      */
  28.     private $modality;
  29.     /**
  30.      * @ORM\Column(type="json", nullable=true)
  31.      */
  32.     private $languages;
  33.     /**
  34.      * @ORM\Column(type="json", nullable=true)
  35.      */
  36.     private $filterParams;
  37.     /**
  38.      * @ORM\ManyToOne(targetEntity="App\Entity\Selection", inversedBy="deeplTranslationConfigs")
  39.      * @ORM\JoinColumns({
  40.      *   @ORM\JoinColumn(name="selection_id", referencedColumnName="id")
  41.      * })
  42.      */
  43.     private $selection;
  44.     /**
  45.      * @ORM\ManyToOne(targetEntity="App\Entity\DeeplTranslationParam", inversedBy="deeplTranslationConfigs")
  46.      * @ORM\JoinColumns({
  47.      *   @ORM\JoinColumn(name="translation_param_id", referencedColumnName="id")
  48.      * })
  49.      */
  50.     private $translationParam;
  51.     /**
  52.      * @ORM\ManyToOne(targetEntity="App\Entity\User", inversedBy="deeplTranslationConfigs")
  53.      */
  54.     private $owner;
  55.     /**
  56.      * @ORM\ManyToOne(targetEntity="App\Entity\DnsitEntity", inversedBy="deeplTranslationConfigs")
  57.      */
  58.     private $entity;
  59.     /**
  60.      * @ORM\Column(type="datetime", nullable=true)
  61.      */
  62.     private $createdAt;
  63.     /**
  64.      * @ORM\Column(type="datetime", nullable=true)
  65.      */
  66.     private $updatedAt;
  67.     /**
  68.      * @ORM\Column(type="integer", nullable=true)
  69.      */
  70.     private $state;
  71.     public function __construct()
  72.     {
  73.     }
  74.     public function getId() : ?int
  75.     {
  76.         return $this->id;
  77.     }
  78.     public function getItemType() : ?array
  79.     {
  80.         return $this->itemType;
  81.     }
  82.     public function setItemType(?array $itemType) : self
  83.     {
  84.         $this->itemType $itemType;
  85.         return $this;
  86.     }
  87.     public function getCriterion() : ?array
  88.     {
  89.         return $this->criterion;
  90.     }
  91.     public function setCriterion(?array $criterion) : self
  92.     {
  93.         $this->criterion $criterion;
  94.         return $this;
  95.     }
  96.     public function getModality() : ?array
  97.     {
  98.         return $this->modality;
  99.     }
  100.     public function setModality(?array $modality) : self
  101.     {
  102.         $this->modality $modality;
  103.         return $this;
  104.     }
  105.     public function getLanguages() : ?array
  106.     {
  107.         return $this->languages;
  108.     }
  109.     public function setLanguages(?array $languages) : self
  110.     {
  111.         $this->languages $languages;
  112.         return $this;
  113.     }
  114.     public function getFilterParams() : ?array
  115.     {
  116.         return $this->filterParams;
  117.     }
  118.     public function setFilterParams(?array $filterParams) : self
  119.     {
  120.         $this->filterParams $filterParams;
  121.         return $this;
  122.     }
  123.     public function getOwner() : ?User
  124.     {
  125.         return $this->owner;
  126.     }
  127.     public function setOwner(?User $owner) : self
  128.     {
  129.         $this->owner $owner;
  130.         return $this;
  131.     }
  132.     public function getEntity() : ?DnsitEntity
  133.     {
  134.         return $this->entity;
  135.     }
  136.     public function setEntity(?DnsitEntity $entity) : self
  137.     {
  138.         $this->entity $entity;
  139.         return $this;
  140.     }
  141.     public function getCreatedAt() : ?\DateTimeInterface
  142.     {
  143.         return $this->createdAt;
  144.     }
  145.     public function setCreatedAt(?\DateTimeInterface $createdAt) : self
  146.     {
  147.         $this->createdAt $createdAt;
  148.         return $this;
  149.     }
  150.     public function getUpdatedAt() : ?\DateTimeInterface
  151.     {
  152.         return $this->updatedAt;
  153.     }
  154.     public function setUpdatedAt(?\DateTimeInterface $updatedAt) : self
  155.     {
  156.         $this->updatedAt $updatedAt;
  157.         return $this;
  158.     }
  159.     public function getState() : ?int
  160.     {
  161.         return $this->state;
  162.     }
  163.     public function setState(?int $state) : self
  164.     {
  165.         $this->state $state;
  166.         return $this;
  167.     }
  168.     public function getSelection() : ?Selection
  169.     {
  170.         return $this->selection;
  171.     }
  172.     public function setSelection(?Selection $selection) : self
  173.     {
  174.         $this->selection $selection;
  175.         return $this;
  176.     }
  177.     public function getTranslationParam() : ?DeeplTranslationParam
  178.     {
  179.         return $this->translationParam;
  180.     }
  181.     public function setTranslationParam(?DeeplTranslationParam $translationParam) : self
  182.     {
  183.         $this->translationParam $translationParam;
  184.         return $this;
  185.     }
  186. }