src/Entity/Comment.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CommentRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassCommentRepository::class)]
  7. class Comment
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\ManyToOne(inversedBy'comments')]
  14.     #[ORM\JoinColumn(nullablefalse)]
  15.     private ?Jury $jury null;
  16.     #[ORM\ManyToOne(inversedBy'comments')]
  17.     #[ORM\JoinColumn(nullablefalse)]
  18.     private ?Team $team null;
  19.     #[ORM\ManyToOne(inversedBy'comments')]
  20.     #[ORM\JoinColumn(nullablefalse)]
  21.     private ?Theme $theme null;
  22.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  23.     private ?string $value null;
  24.     public function getId(): ?int
  25.     {
  26.         return $this->id;
  27.     }
  28.     public function getJury(): ?Jury
  29.     {
  30.         return $this->jury;
  31.     }
  32.     public function setJury(?Jury $jury): self
  33.     {
  34.         $this->jury $jury;
  35.         return $this;
  36.     }
  37.     public function getTeam(): ?Team
  38.     {
  39.         return $this->team;
  40.     }
  41.     public function setTeam(?Team $team): self
  42.     {
  43.         $this->team $team;
  44.         return $this;
  45.     }
  46.     public function getTheme(): ?Theme
  47.     {
  48.         return $this->theme;
  49.     }
  50.     public function setTheme(?Theme $theme): self
  51.     {
  52.         $this->theme $theme;
  53.         return $this;
  54.     }
  55.     public function getValue(): ?string
  56.     {
  57.         return $this->value;
  58.     }
  59.     public function setValue(?string $value): self
  60.     {
  61.         $this->value $value;
  62.         return $this;
  63.     }
  64. }