<?phpnamespace App\Entity;use App\Repository\SourceRepository;use DateTimeImmutable;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: SourceRepository::class)]class Source{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] private ?int $id = null; #[ORM\Column(length: 255)] private ?string $label = null; #[ORM\Column(length: 15)] private ?string $code = null; #[ORM\ManyToOne] private ?User $createdBy = null; #[ORM\ManyToOne] private ?User $updateBy = null; #[ORM\Column] private ?DateTimeImmutable $createdAt = null; #[ORM\Column(nullable: true)] private ?DateTimeImmutable $updatedAt = null; public function __construct() { $this->createdAt = new DateTimeImmutable(); $this->updatedAt = new DateTimeImmutable(); } public function getId(): ?int { return $this->id; } public function getLabel(): ?string { return $this->label; } public function setLabel(string $label): self { $this->label = $label; return $this; } public function getCode(): ?string { return $this->code; } public function setCode(string $code): self { $this->code = $code; return $this; } public function getCreatedBy(): ?User { return $this->createdBy; } public function setCreatedBy(?User $createdBy): self { $this->createdBy = $createdBy; return $this; } public function getUpdateBy(): ?User { return $this->updateBy; } public function setUpdateBy(?User $updateBy): self { $this->updateBy = $updateBy; return $this; } public function getCreatedAt(): ?DateTimeImmutable { return $this->createdAt; } public function setCreatedAt(DateTimeImmutable $createdAt): self { $this->createdAt = $createdAt; return $this; } public function getUpdatedAt(): ?DateTimeImmutable { return $this->updatedAt; } public function setUpdatedAt(?DateTimeImmutable $updatedAt): self { $this->updatedAt = $updatedAt; return $this; } public function __toString(): string { return $this->label; }}