src/Entity/SousSuivi.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\SousSuiviRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=SousSuiviRepository::class)
  7.  */
  8. class SousSuivi
  9. {
  10.     /**
  11.      * @ORM\Id()
  12.      * @ORM\GeneratedValue()
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * Le Suivi parent (ex: La position à Lubumbashi)
  18.      * @ORM\ManyToOne(targetEntity=SuiviContenaire::class, inversedBy="sousSuivis")
  19.      * @ORM\JoinColumn(nullable=false)
  20.      */
  21.     private $suivi;
  22.     /**
  23.      * L'action précise sélectionnée (ex: l'entité SousPosition "Dédouanement")
  24.      * @ORM\ManyToOne(targetEntity=SousPosition::class)
  25.      * @ORM\JoinColumn(nullable=false)
  26.      */
  27.     private $sousPosition;
  28.     /**
  29.      * @ORM\Column(type="datetime")
  30.      */
  31.     private $createdAt;
  32.     /**
  33.      * @ORM\Column(type="string", length=255, nullable=true)
  34.      * Pour ajouter un commentaire spécifique si besoin
  35.      */
  36.     private $commentaire;
  37.     public function __construct()
  38.     {
  39.         $this->createdAt = new \DateTime();
  40.     }
  41.     public function getId(): ?int { return $this->id; }
  42.     public function getSuivi(): ?SuiviContenaire { return $this->suivi; }
  43.     public function setSuivi(?SuiviContenaire $suivi): self $this->suivi $suivi; return $this; }
  44.     public function getSousPosition(): ?SousPosition { return $this->sousPosition; }
  45.     public function setSousPosition(?SousPosition $sousPosition): self $this->sousPosition $sousPosition; return $this; }
  46.     public function getCreatedAt(): ?\DateTimeInterface { return $this->createdAt; }
  47.     public function setCreatedAt(\DateTimeInterface $createdAt): self $this->createdAt $createdAt; return $this; }
  48.     public function getCommentaire(): ?string {
  49.         return $this->commentaire;
  50.     }
  51.     public function setCommentaire(?string $commentaire): self {
  52.         $this->commentaire $commentaire;
  53.         return $this;
  54.     }
  55. }