src/Entity/Categories.php line 15

  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Entity;
  4. use App\Utils\Traits\EntityId_TimestampTrait;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * Categories
  8.  */
  9. #[ORM\Table(name'categories')]
  10. #[ORM\Entity(repositoryClass'App\Repository\CategoriesRepository')]
  11. class Categories
  12. {
  13.     use EntityId_TimestampTrait;
  14.     #[ORM\Column(type'string'length255)]
  15.     private $title;
  16.     #[ORM\Column(type'boolean'nullabletrue)]
  17.     private $poular;
  18.     public function getTitle(): ?string
  19.     {
  20.         return $this->title;
  21.     }
  22.     public function setTitle(string $title): self
  23.     {
  24.         $this->title $title;
  25.         return $this;
  26.     }
  27.     public function isPoular(): ?bool
  28.     {
  29.         return $this->poular;
  30.     }
  31.     public function setPoular(?bool $poular): self
  32.     {
  33.         $this->poular $poular;
  34.         return $this;
  35.     }
  36. }