src/Entity/PlanningUpdateDateTime.php line 10

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PlanningUpdateDateTimeRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassPlanningUpdateDateTimeRepository::class)]
  7. class PlanningUpdateDateTime
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\ManyToOne]
  14.     #[ORM\JoinColumn(nullablefalse)]
  15.     private ?User $user null;
  16.     #[ORM\Column(typeTypes::DATE_MUTABLE)]
  17.     private ?\DateTimeInterface $date null;
  18.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  19.     private ?\DateTimeInterface $dateUpdate null;
  20.     #[ORM\ManyToOne(inversedBy'planningUpdateDateTimes')]
  21.     private ?User $userUpdate null;
  22.     public function getId(): ?int
  23.     {
  24.         return $this->id;
  25.     }
  26.     public function getUser(): ?User
  27.     {
  28.         return $this->user;
  29.     }
  30.     public function setUser(?User $user): static
  31.     {
  32.         $this->user $user;
  33.         return $this;
  34.     }
  35.     public function getDate(): ?\DateTimeInterface
  36.     {
  37.         return $this->date;
  38.     }
  39.     public function setDate(\DateTimeInterface $date): static
  40.     {
  41.         $this->date $date;
  42.         return $this;
  43.     }
  44.     public function getDateUpdate(): ?\DateTimeInterface
  45.     {
  46.         return $this->dateUpdate;
  47.     }
  48.     public function setDateUpdate(\DateTimeInterface $dateUpdate): static
  49.     {
  50.         $this->dateUpdate $dateUpdate;
  51.         return $this;
  52.     }
  53.     public function getUserUpdate(): ?User
  54.     {
  55.         return $this->userUpdate;
  56.     }
  57.     public function setUserUpdate(?User $userUpdate): static
  58.     {
  59.         $this->userUpdate $userUpdate;
  60.         return $this;
  61.     }
  62. }