<?php
namespace App\Entity;
use App\Translation\AutoTranslationTrait;
use Doctrine\ORM\Mapping as ORM;
use Knp\DoctrineBehaviors\Contract\Entity\TranslationInterface;
#[ORM\Entity]
class CropactionTranslation implements TranslationInterface
{
use AutoTranslationTrait;
#[ORM\Id]
#[ORM\Column(type: 'integer')]
#[ORM\GeneratedValue(strategy: 'AUTO')]
private $id;
#[ORM\Column(type: 'string', nullable: true)]
private ?string $title = null;
#[ORM\Column(type: 'text', nullable: true)]
private ?string $text = null;
#[ORM\Column(type: 'text', nullable: true)]
private ?string $notification_text = null;
#[ORM\Column(type: 'json', nullable: true)]
private ?array $additional_data = null;
/**
* @return int
*/
public function getId(): ?int
{
return $this->id;
}
public function getTitle(): ?string
{
return $this->title;
}
public function setTitle(?string $title): CropactionTranslation
{
$this->title = $title;
return $this;
}
public function getText(): ?string
{
return $this->text;
}
public function setText(?string $text): CropactionTranslation
{
$this->text = $text;
return $this;
}
public function getNotificationText(): ?string
{
return $this->notification_text;
}
public function setNotificationText(?string $notification_text): CropactionTranslation
{
$this->notification_text = $notification_text;
return $this;
}
public function getAdditionalData(): ?array
{
return $this->additional_data;
}
public function setAdditionalData(?array $additional_data): CropactionTranslation
{
$this->additional_data = $additional_data;
return $this;
}
}