src/Entity/PlaceCategory.php line 20

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. /*
  4.  * This file is part of the ArtHotel Naquera website.
  5.  *
  6.  * For the full copyright and license information,
  7.  * please read the LICENSE.md file that was distributed with this source code.
  8.  *
  9.  * Copyright (c) 2023.
  10.  */
  11. namespace App\Entity;
  12. use App\Repository\PlaceCategoryRepository;
  13. use Doctrine\ORM\Mapping as ORM;
  14. #[ORM\Entity(repositoryClassPlaceCategoryRepository::class)]
  15. class PlaceCategory
  16. {
  17.     #[ORM\Id]
  18.     #[ORM\GeneratedValue]
  19.     #[ORM\Column]
  20.     private ?int $id null;
  21.     #[ORM\Column(length255)]
  22.     private string $title '';
  23.     public function getId(): ?int
  24.     {
  25.         return $this->id;
  26.     }
  27.     public function getTitle(): ?string
  28.     {
  29.         return $this->title;
  30.     }
  31.     public function setTitle(string $title): self
  32.     {
  33.         $this->title $title;
  34.         return $this;
  35.     }
  36.     public function __toString(): string
  37.     {
  38.         return $this->title;
  39.     }
  40. }