<?php
namespace App\Entity\Clients;
use App\Entity\Utilisateur\Utilisateur;
use DateTime;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
use Symfony\Component\Validator\Constraints as Assert;
use Symfony\Component\Validator\ExecutionContextInterface;
use Doctrine\Common\Collections\ArrayCollection;
/**
* HistoriqueClient
*
* @ORM\Table("client__historique_client")
* @ORM\Entity(repositoryClass="App\Repository\Clients\HistoriqueClientRepository")
* @Gedmo\SoftDeleteable(fieldName="dateSuppression",timeAware=false)
*/
class HistoriqueClient
{
/**
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Utilisateur\Utilisateur", inversedBy="commandes")
* @ORM\JoinColumn(nullable=true)
*/
private $utilisateur;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Clients\Client")
* @ORM\JoinColumn(nullable=true)
*/
private $client;
/**
* @ORM\Column(name="date", type="datetime", nullable=true)
*/
private $date;
/**
* @ORM\Column(name="dateSuppression", type="datetime", nullable=true)
*/
private $dateSuppression;
/**
* @ORM\Column(name="message", type="text", nullable=true)
*/
private $message;
/**
* @ORM\Column(name="titre", type="string", length=255, nullable=true)
*/
private $titre;
/**
* @ORM\Column(name="type", type="string", length=255, nullable=true)
*/
private $type;
public function __construct()
{
$this->date = new Datetime();
}
public function getId(): int
{
return $this->id;
}
public function setDate(?DateTime $date): HistoriqueClient
{
$this->date = $date;
return $this;
}
public function getDate(): ?DateTime
{
return $this->date;
}
public function setDateSuppression(?DateTime $dateSuppression): HistoriqueClient
{
$this->dateSuppression = $dateSuppression;
return $this;
}
public function getDateSuppression(): ?DateTime
{
return $this->dateSuppression;
}
public function setMessage(?string $message): HistoriqueClient
{
$this->message = $message;
return $this;
}
public function getMessage(): ?string
{
return $this->message;
}
public function setTitre(?string $titre): HistoriqueClient
{
$this->titre = $titre;
return $this;
}
public function getTitre(): ?string
{
return $this->titre;
}
public function setType(?string $type): HistoriqueClient
{
$this->type = $type;
return $this;
}
public function getType(): ?string
{
return $this->type;
}
public function setClient(?Client $client): HistoriqueClient
{
$this->client = $client;
return $this;
}
public function getClient(): ?Client
{
return $this->client;
}
public function setUtilisateur(?Utilisateur $utilisateur): HistoriqueClient
{
$this->utilisateur = $utilisateur;
return $this;
}
public function getUtilisateur(): ?Utilisateur
{
return $this->utilisateur;
}
}