Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
proc
/
212
/
task
/
212
/
root
/
proc
/
self
/
root
/
proc
/
212
/
task
/
212
/
root
/
proc
/
70528
/
cwd
/
src
/
Entity
/
//proc/212/task/212/root/proc/self/root/proc/212/task/212/root/proc/70528/cwd/src/Entity/Status.php
<?php namespace App\Entity; use App\Repository\StatusRepository; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass=StatusRepository::class) */ class Status { /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="string", length=255) */ private $name; /** * @ORM\Column(type="text") */ private $emailContent; /** * @ORM\OneToMany(targetEntity=Command::class, mappedBy="status") */ private $commands; /** * @ORM\Column(type="string", length=255) */ private $subject; public function __construct() { $this->commands = new ArrayCollection(); } public function getId(): ?int { return $this->id; } public function getName(): ?string { return $this->name; } public function setName(string $name): self { $this->name = $name; return $this; } public function getEmailContent(): ?string { return $this->emailContent; } public function setEmailContent(string $emailContent): self { $this->emailContent = $emailContent; return $this; } /** * @return Collection<int, Command> */ public function getCommands(): Collection { return $this->commands; } public function addCommand(Command $command): self { if (!$this->commands->contains($command)) { $this->commands[] = $command; $command->setStatus($this); } return $this; } public function removeCommand(Command $command): self { if ($this->commands->removeElement($command)) { // set the owning side to null (unless already changed) if ($command->getStatus() === $this) { $command->setStatus(null); } } return $this; } public function getSubject(): ?string { return $this->subject; } public function setSubject(string $subject): self { $this->subject = $subject; return $this; } }