<?php
declare(strict_types=1);
/*
* This file is part of the ArtHotel Naquera website.
*
* For the full copyright and license information,
* please read the LICENSE.md file that was distributed with this source code.
*
* Copyright (c) 2023.
*/
namespace App\Entity;
use App\Repository\PlaceCategoryRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: PlaceCategoryRepository::class)]
class PlaceCategory
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255)]
private string $title = '';
public function getId(): ?int
{
return $this->id;
}
public function getTitle(): ?string
{
return $this->title;
}
public function setTitle(string $title): self
{
$this->title = $title;
return $this;
}
public function __toString(): string
{
return $this->title;
}
}