2022-04-15 16:46:06 +02:00
|
|
|
<?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;
|
|
|
|
|
2022-12-19 18:35:10 +01:00
|
|
|
#[ORM\Entity(repositoryClass: DebriefingRepository::class)]
|
2022-04-15 16:46:06 +02:00
|
|
|
class Debriefing implements EntityInterface
|
|
|
|
{
|
2022-12-19 18:35:10 +01:00
|
|
|
#[ORM\Id]
|
|
|
|
#[ORM\GeneratedValue]
|
|
|
|
#[ORM\Column(type: 'integer')]
|
2022-04-15 16:46:06 +02:00
|
|
|
protected $id;
|
|
|
|
|
2022-12-19 18:35:10 +01:00
|
|
|
#[ORM\Column(type: 'string', length: 255)]
|
2022-04-15 16:46:06 +02:00
|
|
|
protected $topic;
|
|
|
|
|
2022-12-19 18:35:10 +01:00
|
|
|
#[ORM\Column(type: 'date')]
|
2022-04-15 16:46:06 +02:00
|
|
|
protected $date;
|
|
|
|
|
2022-12-19 18:35:10 +01:00
|
|
|
#[ORM\ManyToMany(targetEntity: Project::class, inversedBy: 'debriefings')]
|
2022-04-15 17:04:56 +02:00
|
|
|
protected $projects;
|
2022-04-15 16:46:06 +02:00
|
|
|
|
2022-12-19 18:35:10 +01:00
|
|
|
#[ORM\Column(type: 'text', nullable: true)]
|
2022-04-15 16:46:06 +02:00
|
|
|
protected $internalContributors;
|
|
|
|
|
2022-12-19 18:35:10 +01:00
|
|
|
#[ORM\Column(type: 'text', nullable: true)]
|
2022-04-15 16:46:06 +02:00
|
|
|
protected $externalContributors;
|
|
|
|
|
2022-12-19 18:35:10 +01:00
|
|
|
#[ORM\Column(type: 'text', nullable: true)]
|
2022-04-15 16:46:06 +02:00
|
|
|
protected $content;
|
|
|
|
|
2022-12-19 18:35:10 +01:00
|
|
|
#[ORM\Column(type: 'array')]
|
2022-04-15 16:46:06 +02:00
|
|
|
protected $files = [];
|
|
|
|
|
|
|
|
public function __construct()
|
|
|
|
{
|
2022-04-18 14:22:26 +02:00
|
|
|
$this->projects = new ArrayCollection();
|
2022-04-15 16:46:06 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
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>
|
|
|
|
*/
|
2022-04-15 17:04:56 +02:00
|
|
|
public function getProjects(): Collection
|
2022-04-15 16:46:06 +02:00
|
|
|
{
|
2022-04-18 14:22:26 +02:00
|
|
|
return $this->projects;
|
2022-04-15 16:46:06 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public function addProject(Project $project): self
|
|
|
|
{
|
2022-04-15 17:04:56 +02:00
|
|
|
if (!$this->projects->contains($project)) {
|
|
|
|
$this->projects[] = $project;
|
2022-04-15 16:46:06 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function removeProject(Project $project): self
|
|
|
|
{
|
2022-04-15 17:04:56 +02:00
|
|
|
$this->projects->removeElement($project);
|
2022-04-15 16:46:06 +02:00
|
|
|
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|