<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use App\Enums\ProjectType;
#[ORM\Table('project')]
#[ORM\Entity]
class Project
{
#[ORM\Column('id', 'integer')]
#[ORM\Id]
#[ORM\GeneratedValue('IDENTITY')]
private ?int $id;
#[ORM\Column('title', 'string', 500)]
private ?string $title = null;
#[ORM\Column('active', 'boolean')]
private bool $active = true;
#[ORM\Column('type', 'string', 64, enumType: ProjectType::class, nullable: true)]
private ?ProjectType $type = null;
public function getId(): ?int
{
return $this->id;
}
public function setId(int $id): self
{
$this->id = $id;
return $this;
}
public function getTitle(): ?string
{
return $this->title;
}
public function setTitle(string $title): self
{
$this->title = $title;
return $this;
}
public function isActive(): bool
{
return $this->active;
}
public function setActive(bool $active): self
{
$this->active = $active;
return $this;
}
public function getType(): ?ProjectType
{
return $this->type;
}
public function setType(?ProjectType $type): self
{
$this->type = $type;
return $this;
}
}