suivi/src/Entity/Debriefing.php

164 lines
3.1 KiB
PHP

<?php
namespace App\Entity;
use App\Core\Entity\EntityInterface;
use App\Repository\DebriefingRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=DebriefingRepository::class)
*/
class Debriefing implements EntityInterface
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
protected $id;
/**
* @ORM\Column(type="string", length=255)
*/
protected $topic;
/**
* @ORM\Column(type="date")
*/
protected $date;
/**
* @ORM\ManyToMany(targetEntity=Project::class, inversedBy="debriefings")
*/
protected $projects;
/**
* @ORM\Column(type="text", nullable=true)
*/
protected $internalContributors;
/**
* @ORM\Column(type="text", nullable=true)
*/
protected $externalContributors;
/**
* @ORM\Column(type="text", nullable=true)
*/
protected $content;
/**
* @ORM\Column(type="array")
*/
protected $files = [];
public function __construct()
{
$this->projects = new ArrayCollection();
}
public function getId(): ?int
{
return $this->id;
}
public function getTopic(): ?string
{
return $this->topic;
}
public function setTopic(string $topic): self
{
$this->topic = $topic;
return $this;
}
public function getDate(): ?\DateTimeInterface
{
return $this->date;
}
public function setDate(\DateTimeInterface $date): self
{
$this->date = $date;
return $this;
}
/**
* @return Collection<int, Project>
*/
public function getProjects(): Collection
{
return $this->projects;
}
public function addProject(Project $project): self
{
if (!$this->projects->contains($project)) {
$this->projects[] = $project;
}
return $this;
}
public function removeProject(Project $project): self
{
$this->projects->removeElement($project);
return $this;
}
public function getInternalContributors(): ?string
{
return $this->internalContributors;
}
public function setInternalContributors(?string $internalContributors): self
{
$this->internalContributors = $internalContributors;
return $this;
}
public function getExternalContributors(): ?string
{
return $this->externalContributors;
}
public function setExternalContributors(?string $externalContributors): self
{
$this->externalContributors = $externalContributors;
return $this;
}
public function getContent(): ?string
{
return $this->content;
}
public function setContent(?string $content): self
{
$this->content = $content;
return $this;
}
public function getFiles(): ?array
{
return $this->files;
}
public function setFiles(array $files): self
{
$this->files = $files;
return $this;
}
}