src/Entity/Action.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ActionRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Validator\Constraints as Assert;
  6. /**
  7.  * @ORM\Entity(repositoryClass=ActionRepository::class)
  8.  */
  9. class Action
  10. {
  11.     /**
  12.      * @ORM\Id()
  13.      * @ORM\GeneratedValue()
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\Column(type="string", length=255)
  19.      */
  20.     private $libelle;
  21.     /**
  22.      * @ORM\Column(type="datetime")
  23.      */
  24.     private $date;
  25.     /**
  26.      * @ORM\ManyToOne(targetEntity="App\Entity\User", inversedBy="actions")
  27.      * @ORM\JoinColumn(nullable=false)
  28.      */
  29.     private $user;
  30.     /**
  31.      * @ORM\Column(type="text", nullable=true)
  32.      */
  33.     private $commentaire;
  34.     public function getId(): ?int
  35.     {
  36.         return $this->id;
  37.     }
  38.     public function getLibelle(): ?string
  39.     {
  40.         return $this->libelle;
  41.     }
  42.     public function setLibelle(string $libelle): self
  43.     {
  44.         $this->libelle $libelle;
  45.         return $this;
  46.     }
  47.     public function getDate(): ?\DateTimeInterface
  48.     {
  49.         return $this->date;
  50.     }
  51.     public function setDate(?\DateTimeInterface $date): self
  52.     {
  53.         $this->date $date;
  54.         return $this;
  55.     }
  56.     public function getUser(): ?User
  57.     {
  58.         return $this->user;
  59.     }
  60.     public function setUser(?User $user): self
  61.     {
  62.         $this->user $user;
  63.         return $this;
  64.     }
  65.     public function getCommentaire(): ?string
  66.     {
  67.         return $this->commentaire;
  68.     }
  69.     public function setCommentaire(?string $commentaire): self
  70.     {
  71.         $this->commentaire $commentaire;
  72.         return $this;
  73.     }
  74. }