<?phpnamespace App\Entity\Application;use Doctrine\ORM\Mapping as ORM;use Symfony\Component\HttpFoundation\File\File;use Vich\UploaderBundle\Mapping\Annotation as Vich;use Symfony\Component\Validator\Constraints as Assert;use App\Entity\Behaviors\TranslationTrait;use Knp\DoctrineBehaviors\Contract\Entity\TranslationInterface;use JMS\Serializer\Annotation as Serializer;/** * * @ORM\Table(name="app_information_translation") * @ORM\EntityListeners({"App\Listener\EntityListener"}) * @ORM\Entity(repositoryClass="App\Repository\TranslationRepository") * @Vich\Uploadable() */class InformationTranslation implements TranslationInterface{ use TranslationTrait; /** * @Vich\UploadableField(mapping="cupons", fileNameProperty="image") * @Assert\Image(mimeTypes={"image/png", "image/jpeg", "image/jpg", "image/gif"}) * @var File|null */ private $imageFile; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $image; /** * @ORM\Column(type="string", length=2) */ protected $locale; /** * @Serializer\Groups({"api"}) * @Serializer\SerializedName("description") * @ORM\Column(type="text", nullable=true) */ protected $text; /** * @ORM\Column(type="datetime") */ private $createts; /** * @ORM\ManyToOne(targetEntity="App\Entity\User") * @ORM\JoinColumn(nullable=true) */ private $createUser; /** * @ORM\Column(type="datetime", nullable=true) */ private $editts; /** * @ORM\ManyToOne(targetEntity="App\Entity\User") */ private $editUser; /** * Get Image1File * * @return null|File */ public function getImageFile(): ?File { return $this->imageFile; } /** * @param File|\Symfony\Component\HttpFoundation\File\UploadedFile|null $imageFile */ public function setImageFile(?File $imageFile = null): void { $this->imageFile = $imageFile; if (null !== $imageFile) { $this->editts = new \DateTime(); } } /** * @return mixed */ public function getImage() { return $this->image; } /** * @param mixed $image */ public function setImage($image): void { $this->image = $image; } /** * @return mixed */ public function getCreatets() { return $this->createts; } /** * @param mixed $createts */ public function setCreatets($createts): void { $this->createts = $createts; } /** * @return mixed */ public function getCreateUser() { return $this->createUser; } /** * @param mixed $createUser */ public function setCreateUser($createUser): void { $this->createUser = $createUser; } /** * @return mixed */ public function getEditts() { return $this->editts; } /** * @param mixed $editts */ public function setEditts($editts): void { $this->editts = $editts; } /** * @return mixed */ public function getEditUser() { return $this->editUser; } /** * @param mixed $editUser */ public function setEditUser($editUser): void { $this->editUser = $editUser; } /** * @return mixed */ public function getLocale(): string { return $this->locale; } /** * @param mixed $locale */ public function setLocale($locale): void { $this->locale = $locale; } /** * @return mixed */ public function getText() { return $this->text; } /** * @param mixed $text */ public function setText($text): void { $this->text = $text; }}