src/Entity/Playground.php line 15
<?phpnamespace App\Entity;use App\Entity\Trait\MainTranslationTrait;use App\Entity\Translation\PlaygroundTranslation;use App\Repository\PlaygroundRepository;use Doctrine\ORM\Mapping as ORM;use Gedmo\Translatable\Translatable;use Gedmo\Mapping\Annotation as Gedmo;#[ORM\Table(name: 'playground')]#[ORM\Entity(repositoryClass: PlaygroundRepository::class)]#[Gedmo\TranslationEntity(class: PlaygroundTranslation::class)]class Playground implements Translatable{use MainTranslationTrait;const TRANSLATION_ENTITY = PlaygroundTranslation::class;#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\Column(type: 'string', nullable: true)]#[Gedmo\Translatable]private ?string $title = null;#[ORM\Column(type: 'text', nullable: true)]#[Gedmo\Translatable]private ?string $description = null;#[ORM\Column(type: 'text', nullable: true)]#[Gedmo\Translatable]private ?string $body = null;#[ORM\Column(type: 'string', nullable: true)]private ?string $image = null;#[ORM\Column(type: 'string', nullable: true)]private ?string $video = null;#[ORM\Column(type: 'boolean', nullable: true)]private ?bool $phoneAllowed = true;#[ORM\Column(type: 'json', nullable: true)]private ?array $images = null;#[ORM\Column(type: 'text', nullable: true)]#[Gedmo\Translatable]private ?string $additionalInfo = null;public function __toString(): string{return $this->title ?? "";}public function getId(): ?int{return $this->id;}public function getTitle(): ?string{return $this->title;}public function setTitle(?string $title): static{$this->title = $title;return $this;}public function getDescription(): ?string{return $this->description;}public function setDescription(?string $description): static{$this->description = $description;return $this;}public function getBody(): ?string{return $this->body;}public function setBody(?string $body): static{$this->body = $body;return $this;}public function getImage(): ?string{return $this->image;}public function setImage(?string $image): static{$this->image = $image;return $this;}public function getImages(): ?array{return $this->images;}public function setImages(?array $images): static{$this->images = $images;return $this;}public function getPhoneAllowed(): ?bool{return $this->phoneAllowed;}public function setPhoneAllowed(?bool $phoneAllowed): void{$this->phoneAllowed = $phoneAllowed;}public function getAdditionalInfo(): ?string{return $this->additionalInfo;}public function setAdditionalInfo(?string $additionalInfo): void{$this->additionalInfo = $additionalInfo;}public function getVideo(): ?string{return $this->video;}public function setVideo(?string $video): void{$this->video = $video;}}