src/Entity/ApidaeTranslationHistory.php line 12

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\ApidaeTranslationHistoryRepository")
  8.  */
  9. class ApidaeTranslationHistory
  10. {
  11.     /**
  12.      * @ORM\Id()
  13.      * @ORM\GeneratedValue()
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @var int|null
  19.      *
  20.      * @ORM\Column(name="product_code", type="bigint", nullable=true )
  21.      */
  22.     private $productCode;
  23.     /**
  24.      * @ORM\ManyToOne(targetEntity="App\Entity\ApidaeTranslationConfig", inversedBy="apidaeTranslationHistorys")
  25.      * @ORM\JoinColumns({
  26.      *   @ORM\JoinColumn(name="apidae_translate_config_id", referencedColumnName="id")
  27.      * })
  28.      */
  29.     private $translationConfig;
  30.     /**
  31.      * @ORM\Column(type="string", length=150, nullable=true, options={"comment":"identitifiant texte du champ Apidae traduit"})
  32.      */
  33.     private $field;
  34.     /**
  35.      * @ORM\Column(type="string", length=50, nullable=true, options={"comment":"langue de traduction"})
  36.      */
  37.     private $language;
  38.     /**
  39.      * @ORM\Column(type="string", length=50000, nullable=true, options={"comment":"texte d'origine"})
  40.      */
  41.     private $originalText;
  42.     /**
  43.      * @ORM\Column(type="string", length=50000, nullable=true, options={"comment":"traduction réalisée"})
  44.      */
  45.     private $translation;
  46.     /**
  47.      * @ORM\Column(type="datetime", nullable=true)
  48.      */
  49.     private $createdAt;
  50.     public function __construct()
  51.     {
  52.     }
  53.     public function getId() : ?int
  54.     {
  55.         return $this->id;
  56.     }
  57.     public function getProductCode(): ?int
  58.     {
  59.         return $this->productCode;
  60.     }
  61.     public function setProductCode(?int $productCode): self
  62.     {
  63.         $this->productCode $productCode;
  64.         return $this;
  65.     }
  66.     public function getField() : ?string
  67.     {
  68.         return $this->field;
  69.     }
  70.     public function setField(?string $field) : self
  71.     {
  72.         $this->field $field;
  73.         return $this;
  74.     }
  75.     public function getLanguage() : ?string
  76.     {
  77.         return $this->languages;
  78.     }
  79.     public function setLanguage(?string $language) : self
  80.     {
  81.         $this->language $language;
  82.         return $this;
  83.     }
  84.     public function getOriginalText() : ?string
  85.     {
  86.         return $this->originalText;
  87.     }
  88.     public function setOriginalText(?string $originalText) : self
  89.     {
  90.         $this->originalText $originalText;
  91.         return $this;
  92.     }
  93.     public function getTranslation() : ?string
  94.     {
  95.         return $this->translation;
  96.     }
  97.     public function setTranslation(?string $translation) : self
  98.     {
  99.         $this->translation $translation;
  100.         return $this;
  101.     }
  102.     public function getCreatedAt() : ?\DateTimeInterface
  103.     {
  104.         return $this->createdAt;
  105.     }
  106.     public function setCreatedAt(?\DateTimeInterface $createdAt) : self
  107.     {
  108.         $this->createdAt $createdAt;
  109.         return $this;
  110.     }
  111.     public function getTranslationConfig() : ?ApidaeTranslationConfig
  112.     {
  113.         return $this->translationConfig;
  114.     }
  115.     public function setTranslationConfig(?ApidaeTranslationConfig $translationConfig) : self
  116.     {
  117.         $this->translationConfig $translationConfig;
  118.         return $this;
  119.     }
  120. }