src/Entity/ChantierHistorique.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ChantierHistoriqueRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8.  * @ORM\Entity(repositoryClass=ChantierHistoriqueRepository::class)
  9.  */
  10. class ChantierHistorique
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\Column(type="string", length=255)
  20.      */
  21.     private $old_status;
  22.     /**
  23.      * @ORM\Column(type="string", length=255)
  24.      */
  25.     private $new_status;
  26.     /**
  27.      * @ORM\ManyToOne(targetEntity=User::class)
  28.      * * @ORM\JoinColumn(nullable=false)
  29.      */
  30.     private $user;
  31.     /**
  32.      * @ORM\Column(type="date")
  33.      */
  34.     private $change_date;
  35.     /**
  36.      * @ORM\ManyToOne(targetEntity=Chantier::class, inversedBy="chantierHistoriques")
  37.      * @ORM\JoinColumn(nullable=false)
  38.      */
  39.     private $chantier;
  40.     public function __construct()
  41.     {
  42.     }
  43.     public function getId(): ?int
  44.     {
  45.         return $this->id;
  46.     }
  47.     public function getOldStatus(): ?string
  48.     {
  49.         return $this->old_status;
  50.     }
  51.     public function setOldStatus(string $old_status): self
  52.     {
  53.         $this->old_status $old_status;
  54.         return $this;
  55.     }
  56.     public function getNewStatus(): ?string
  57.     {
  58.         return $this->new_status;
  59.     }
  60.     public function setNewStatus(string $new_status): self
  61.     {
  62.         $this->new_status $new_status;
  63.         return $this;
  64.     }
  65.     public function getUser(): ?User
  66.     {
  67.         return $this->user;
  68.     }
  69.     public function setUser(?User $user): self
  70.     {
  71.         $this->user $user;
  72.         return $this;
  73.     }
  74.     public function getChangeDate(): ?\DateTimeInterface
  75.     {
  76.         return $this->change_date;
  77.     }
  78.     public function setChangeDate(\DateTimeInterface $change_date): self
  79.     {
  80.         $this->change_date $change_date;
  81.         return $this;
  82.     }
  83.     public function getChantier(): ?Chantier
  84.     {
  85.         return $this->chantier;
  86.     }
  87.     public function setChantier(?Chantier $chantier): self
  88.     {
  89.         $this->chantier $chantier;
  90.         return $this;
  91.     }
  92. }