<?php
namespace App\Entity;
use App\Repository\LogsRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: LogsRepository::class)]
class Logs
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255)]
private ?string $type = null;
#[ORM\Column]
private array $content = [];
#[ORM\ManyToOne(inversedBy: 'logs')]
#[ORM\JoinColumn(nullable: false)]
private ?User $user = null;
#[ORM\ManyToOne(inversedBy: 'logs')]
#[ORM\JoinColumn(nullable: false)]
private ?Project $projet = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE)]
private ?\DateTimeInterface $createdAt = null;
#[ORM\ManyToOne(inversedBy: 'logs')]
private ?ProjectDeliverable $livrable = null;
#[ORM\ManyToOne(inversedBy: 'logs')]
private ?DeliverableVersions $idVersion = null;
public function getId(): ?int
{
return $this->id;
}
public function getType(): ?string
{
return $this->type;
}
public function setType(string $type): self
{
$this->type = $type;
return $this;
}
public function getContent(): array
{
return $this->content;
}
public function setContent(array $content): self
{
$this->content = $content;
return $this;
}
public function getUser(): ?User
{
return $this->user;
}
public function setUser(?User $user): self
{
$this->user = $user;
return $this;
}
public function getProjet(): ?Project
{
return $this->projet;
}
public function setProjet(?Project $projet): self
{
$this->projet = $projet;
return $this;
}
public function getCreatedAt(): ?\DateTimeInterface
{
return $this->createdAt;
}
public function setCreatedAt(\DateTimeInterface $createdAt): self
{
$this->createdAt = $createdAt;
return $this;
}
public function getLivrable(): ?ProjectDeliverable
{
return $this->livrable;
}
public function setLivrable(?ProjectDeliverable $livrable): self
{
$this->livrable = $livrable;
return $this;
}
public function getIdVersion(): ?DeliverableVersions
{
return $this->idVersion;
}
public function setIdVersion(?DeliverableVersions $idVersion): self
{
$this->idVersion = $idVersion;
return $this;
}
}