src/Entity/Project.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use App\Enums\ProjectType;
  5. #[ORM\Table('project')]
  6. #[ORM\Entity]
  7. class Project
  8. {
  9.     #[ORM\Column('id''integer')]
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue('IDENTITY')]
  12.     private ?int $id;
  13.     #[ORM\Column('title''string'500)]
  14.     private ?string $title null;
  15.     #[ORM\Column('active''boolean')]
  16.     private bool $active true;
  17.     #[ORM\Column('type''string'64enumTypeProjectType::class, nullabletrue)]
  18.     private ?ProjectType $type null;
  19.     public function getId(): ?int
  20.     {
  21.         return $this->id;
  22.     }
  23.     public function setId(int $id): self
  24.     {
  25.         $this->id $id;
  26.         return $this;
  27.     }
  28.     public function getTitle(): ?string
  29.     {
  30.         return $this->title;
  31.     }
  32.     public function setTitle(string $title): self
  33.     {
  34.         $this->title $title;
  35.         return $this;
  36.     }
  37.     public function isActive(): bool
  38.     {
  39.         return $this->active;
  40.     }
  41.     public function setActive(bool $active): self
  42.     {
  43.         $this->active $active;
  44.         return $this;
  45.     }
  46.     public function getType(): ?ProjectType
  47.     {
  48.         return $this->type;
  49.     }
  50.     public function setType(?ProjectType $type): self
  51.     {
  52.         $this->type $type;
  53.         return $this;
  54.     }
  55. }