src/Entity/Meeting.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\MeetingRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Knp\DoctrineBehaviors\Contract\Entity\BlameableInterface;
  6. use Knp\DoctrineBehaviors\Contract\Entity\TimestampableInterface;
  7. use Knp\DoctrineBehaviors\Model\Blameable\BlameableTrait;
  8. use Knp\DoctrineBehaviors\Model\Timestampable\TimestampableTrait;
  9. use Symfony\Component\Validator\Constraints as Assert;
  10. #[ORM\Entity(repositoryClassMeetingRepository::class)]
  11. class Meeting implements BlameableInterfaceTimestampableInterface
  12. {
  13.     use BlameableTrait;
  14.     use TimestampableTrait;
  15.     #[ORM\Id]
  16.     #[ORM\GeneratedValue]
  17.     #[ORM\Column(type'integer')]
  18.     private $id;
  19.     #[Assert\NotBlank]
  20.     #[ORM\Column(type'string'length255)]
  21.     private $Subject;
  22.     #[Assert\NotBlank]
  23.     #[ORM\Column(type'text'length2000)]
  24.     private $description;
  25.     #[Assert\NotBlank]
  26.     #[ORM\Column(type'datetime')]
  27.     private $meeting_date;
  28.     #[ORM\Column(type'boolean')]
  29.     private $isConfirmedfalse;
  30.     #[ORM\Column(type'boolean')]
  31.     private $status true;
  32.     #[ORM\ManyToOne(targetEntityDemande::class, inversedBy'meeting')]
  33.     private $demande;
  34.     #[ORM\ManyToOne(targetEntityFormUser::class, inversedBy'meeting')]
  35.     private $formUser;
  36.     public function getId(): ?int
  37.     {
  38.         return $this->id;
  39.     }
  40.     public function getSubject(): ?string
  41.     {
  42.         return $this->Subject;
  43.     }
  44.     public function setSubject(string $Subject): self
  45.     {
  46.         $this->Subject $Subject;
  47.         return $this;
  48.     }
  49.     public function getMeetingDate(): ?\DateTimeInterface
  50.     {
  51.         return $this->meeting_date;
  52.     }
  53.     public function setMeetingDate(\DateTimeInterface $meeting_date): self
  54.     {
  55.         $this->meeting_date $meeting_date;
  56.         return $this;
  57.     }
  58.     /**
  59.      * @return mixed
  60.      */
  61.     public function getDemande()
  62.     {
  63.         return $this->demande;
  64.     }
  65.     /**
  66.      * @param mixed $demande
  67.      */
  68.     public function setDemande($demande): void
  69.     {
  70.         $this->demande $demande;
  71.     }
  72.     /**
  73.      * @return mixed
  74.      */
  75.     public function getDescription()
  76.     {
  77.         return $this->description;
  78.     }
  79.     /**
  80.      * @param mixed $description
  81.      */
  82.     public function setDescription($description): void
  83.     {
  84.         $this->description $description;
  85.     }
  86.     /**
  87.      * @return mixed
  88.      */
  89.     public function getFormUser()
  90.     {
  91.         return $this->formUser;
  92.     }
  93.     /**
  94.      * @param mixed $formUser
  95.      */
  96.     public function setFormUser($formUser): void
  97.     {
  98.         $this->formUser $formUser;
  99.     }
  100.     /**
  101.      * @return bool
  102.      */
  103.     public function isConfirmed(): bool
  104.     {
  105.         return $this->isConfirmed;
  106.     }
  107.     /**
  108.      * @param bool $isConfirmed
  109.      */
  110.     public function setIsConfirmed(bool $isConfirmed): void
  111.     {
  112.         $this->isConfirmed $isConfirmed;
  113.     }
  114.     /**
  115.      * @return mixed
  116.      */
  117.     public function getStatus()
  118.     {
  119.         return $this->status;
  120.     }
  121.     /**
  122.      * @param mixed $status
  123.      */
  124.     public function setStatus($status): void
  125.     {
  126.         $this->status $status;
  127.     }
  128. }