src/Entity/Clients/HistoriqueClient.php line 20

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Clients;
  3. use App\Entity\Utilisateur\Utilisateur;
  4. use DateTime;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Gedmo\Mapping\Annotation as Gedmo;
  7. use Symfony\Component\Validator\Constraints as Assert;
  8. use Symfony\Component\Validator\ExecutionContextInterface;
  9. use Doctrine\Common\Collections\ArrayCollection;
  10. /**
  11.  * HistoriqueClient
  12.  *
  13.  * @ORM\Table("client__historique_client")
  14.  * @ORM\Entity(repositoryClass="App\Repository\Clients\HistoriqueClientRepository")
  15.  * @Gedmo\SoftDeleteable(fieldName="dateSuppression",timeAware=false)
  16.  */
  17. class HistoriqueClient
  18. {
  19.     /**
  20.      * @ORM\Column(name="id", type="integer")
  21.      * @ORM\Id
  22.      * @ORM\GeneratedValue(strategy="AUTO")
  23.      */
  24.     private $id;
  25.     /**
  26.      * @ORM\ManyToOne(targetEntity="App\Entity\Utilisateur\Utilisateur", inversedBy="commandes")
  27.      * @ORM\JoinColumn(nullable=true)
  28.      */
  29.     private $utilisateur;
  30.     /**
  31.      * @ORM\ManyToOne(targetEntity="App\Entity\Clients\Client")
  32.      * @ORM\JoinColumn(nullable=true)
  33.      */
  34.     private $client;
  35.     /**
  36.      * @ORM\Column(name="date", type="datetime", nullable=true)
  37.      */
  38.     private $date;
  39.     /**
  40.      * @ORM\Column(name="dateSuppression", type="datetime", nullable=true)
  41.      */
  42.     private $dateSuppression;
  43.     /**
  44.      * @ORM\Column(name="message", type="text", nullable=true)
  45.      */
  46.     private $message;
  47.     /**
  48.      * @ORM\Column(name="titre", type="string", length=255, nullable=true)
  49.      */
  50.     private $titre;
  51.     /**
  52.      * @ORM\Column(name="type", type="string", length=255, nullable=true)
  53.      */
  54.     private $type;
  55.     public function __construct()
  56.     {
  57.         $this->date = new Datetime();
  58.     }
  59.     public function getId(): int
  60.     {
  61.         return $this->id;
  62.     }
  63.     public function setDate(?DateTime $date): HistoriqueClient
  64.     {
  65.         $this->date $date;
  66.         return $this;
  67.     }
  68.     public function getDate(): ?DateTime
  69.     {
  70.         return $this->date;
  71.     }
  72.     public function setDateSuppression(?DateTime $dateSuppression): HistoriqueClient
  73.     {
  74.         $this->dateSuppression $dateSuppression;
  75.         return $this;
  76.     }
  77.     public function getDateSuppression(): ?DateTime
  78.     {
  79.         return $this->dateSuppression;
  80.     }
  81.     public function setMessage(?string $message): HistoriqueClient
  82.     {
  83.         $this->message $message;
  84.         return $this;
  85.     }
  86.     public function getMessage(): ?string
  87.     {
  88.         return $this->message;
  89.     }
  90.     public function setTitre(?string $titre): HistoriqueClient
  91.     {
  92.         $this->titre $titre;
  93.         return $this;
  94.     }
  95.     public function getTitre(): ?string
  96.     {
  97.         return $this->titre;
  98.     }
  99.     public function setType(?string $type): HistoriqueClient
  100.     {
  101.         $this->type $type;
  102.         return $this;
  103.     }
  104.     public function getType(): ?string
  105.     {
  106.         return $this->type;
  107.     }
  108.     public function setClient(?Client $client): HistoriqueClient
  109.     {
  110.         $this->client $client;
  111.         return $this;
  112.     }
  113.     public function getClient(): ?Client
  114.     {
  115.         return $this->client;
  116.     }
  117.     public function setUtilisateur(?Utilisateur $utilisateur): HistoriqueClient
  118.     {
  119.         $this->utilisateur $utilisateur;
  120.         return $this;
  121.     }
  122.     public function getUtilisateur(): ?Utilisateur
  123.     {
  124.         return $this->utilisateur;
  125.     }
  126. }