<?php
namespace App\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity (repositoryClass="App\Repository\ApidaeTranslationHistoryRepository")
*/
class ApidaeTranslationHistory
{
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
private $id;
/**
* @var int|null
*
* @ORM\Column(name="product_code", type="bigint", nullable=true )
*/
private $productCode;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\ApidaeTranslationConfig", inversedBy="apidaeTranslationHistorys")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="apidae_translate_config_id", referencedColumnName="id")
* })
*/
private $translationConfig;
/**
* @ORM\Column(type="string", length=150, nullable=true, options={"comment":"identitifiant texte du champ Apidae traduit"})
*/
private $field;
/**
* @ORM\Column(type="string", length=50, nullable=true, options={"comment":"langue de traduction"})
*/
private $language;
/**
* @ORM\Column(type="string", length=50000, nullable=true, options={"comment":"texte d'origine"})
*/
private $originalText;
/**
* @ORM\Column(type="string", length=50000, nullable=true, options={"comment":"traduction réalisée"})
*/
private $translation;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $createdAt;
public function __construct()
{
}
public function getId() : ?int
{
return $this->id;
}
public function getProductCode(): ?int
{
return $this->productCode;
}
public function setProductCode(?int $productCode): self
{
$this->productCode = $productCode;
return $this;
}
public function getField() : ?string
{
return $this->field;
}
public function setField(?string $field) : self
{
$this->field = $field;
return $this;
}
public function getLanguage() : ?string
{
return $this->languages;
}
public function setLanguage(?string $language) : self
{
$this->language = $language;
return $this;
}
public function getOriginalText() : ?string
{
return $this->originalText;
}
public function setOriginalText(?string $originalText) : self
{
$this->originalText = $originalText;
return $this;
}
public function getTranslation() : ?string
{
return $this->translation;
}
public function setTranslation(?string $translation) : self
{
$this->translation = $translation;
return $this;
}
public function getCreatedAt() : ?\DateTimeInterface
{
return $this->createdAt;
}
public function setCreatedAt(?\DateTimeInterface $createdAt) : self
{
$this->createdAt = $createdAt;
return $this;
}
public function getTranslationConfig() : ?ApidaeTranslationConfig
{
return $this->translationConfig;
}
public function setTranslationConfig(?ApidaeTranslationConfig $translationConfig) : self
{
$this->translationConfig = $translationConfig;
return $this;
}
}