src/Entity/HistoryEvent.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\HistoryEventRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassHistoryEventRepository::class)]
  6. class HistoryEvent
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column(type'integer')]
  11.     private $id;
  12.     #[ORM\ManyToOne(targetEntityUser::class, inversedBy'historyEvents')]
  13.     #[ORM\JoinColumn(nullablefalse)]
  14.     private $User;
  15.     #[ORM\Column(type'string'length255)]
  16.     private $type;
  17.     #[ORM\Column(type'datetime')]
  18.     private $lastExecuted;
  19.     public function getId(): ?int
  20.     {
  21.         return $this->id;
  22.     }
  23.     public function getUser(): ?User
  24.     {
  25.         return $this->User;
  26.     }
  27.     public function setUser(?User $User): self
  28.     {
  29.         $this->User $User;
  30.         return $this;
  31.     }
  32.     public function getType(): ?string
  33.     {
  34.         return $this->type;
  35.     }
  36.     public function setType(string $type): self
  37.     {
  38.         $this->type $type;
  39.         return $this;
  40.     }
  41.     public function getLastExecuted(): ?\DateTimeInterface
  42.     {
  43.         return $this->lastExecuted;
  44.     }
  45.     public function setLastExecuted(\DateTimeInterface $lastExecuted): self
  46.     {
  47.         $this->lastExecuted $lastExecuted;
  48.         return $this;
  49.     }
  50. }