src/Entity/RejectEvaluation.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Entity\Traits\TimeStampable;
  4. use App\Repository\RejectEvaluationRepository;
  5. use Doctrine\DBAL\Types\Types;
  6. use Doctrine\ORM\Mapping as ORM;
  7. use Symfony\Component\Serializer\Annotation\Groups;
  8. #[ORM\Entity(repositoryClass: RejectEvaluationRepository::class)]
  9. #[ORM\HasLifecycleCallbacks]
  10. class RejectEvaluation
  11. {
  12.     use TimeStampable;
  13.     #[ORM\Id]
  14.     #[ORM\GeneratedValue]
  15.     #[ORM\Column]
  16.     #[Groups(['rejetEvaluation:read'])]
  17.     private ?int $id = null;
  18.     #[ORM\Column(type: Types::TEXT)]
  19.     #[Groups(['rejetEvaluation:read'])]
  20.     private ?string $motif = null;
  21.     #[ORM\ManyToOne(inversedBy: 'rejectEvaluations', cascade: ['persist'])]
  22.     #[Groups(['rejetEvaluation:read'])]
  23.     private ?RateOfProgress $RateOfProgress = null;
  24.     #[ORM\ManyToOne(inversedBy: 'rejectEvaluations')]
  25.     private ?User $author = null;
  26.     public function getId(): ?int
  27.     {
  28.         return $this->id;
  29.     }
  30.     public function getMotif(): ?string
  31.     {
  32.         return $this->motif;
  33.     }
  34.     public function setMotif(string $motif): static
  35.     {
  36.         $this->motif = $motif;
  37.         return $this;
  38.     }
  39.     public function getRateOfProgress(): ?RateOfProgress
  40.     {
  41.         return $this->RateOfProgress;
  42.     }
  43.     public function setRateOfProgress(?RateOfProgress $RateOfProgress): static
  44.     {
  45.         $this->RateOfProgress = $RateOfProgress;
  46.         return $this;
  47.     }
  48.     public function getAuthor(): ?User
  49.     {
  50.         return $this->author;
  51.     }
  52.     public function setAuthor(?User $author): static
  53.     {
  54.         $this->author = $author;
  55.         return $this;
  56.     }
  57. }