<?php
namespace App\Entity\MarketPlace;
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 App\Annotations\SecuredEntity;
/**
* MarketPlace
*
* @ORM\Table("market_place__market_place")
* @ORM\Entity(repositoryClass="App\Repository\MarketPlace\MarketPlaceRepository")
* @SecuredEntity (name="MarketPlace", group="MARKETPLACE")
*/
class MarketPlace
{
/**
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Utilisateur\Utilisateur")
* @ORM\JoinColumn(nullable=true)
*/
private $utilisateur;
/**
* @ORM\Column(name="libelle", type="string", length=255, nullable=true)
*/
private $libelle;
/**
* @ORM\Column(name="date", type="datetime", nullable=true)
*/
private $date;
/**
* @ORM\Column(name="statut", type="boolean", nullable=true)
*/
private $statut;
/**
* @ORM\Column(name="dateSuppression", type="datetime", nullable=true)
*/
private $dateSuppression;
/**
* @ORM\Column(name="dateMaj", type="datetime", nullable=true)
*/
private $dateMaj;
/**
* @ORM\Column(name="code_comptable", type="string", length=255, nullable=true)
*/
private $codeComptable;
public function __construct()
{
$this->date = new Datetime();
$this->statut = true;
}
public function getId(): int
{
return $this->id;
}
public function setLibelle(?string $libelle): MarketPlace
{
$this->libelle = $libelle;
return $this;
}
public function getLibelle(): ?string
{
return $this->libelle;
}
public function setDate(?DateTime $date): MarketPlace
{
$this->date = $date;
return $this;
}
public function getDate(): ?DateTime
{
return $this->date;
}
public function setStatut(?bool $statut): MarketPlace
{
$this->statut = $statut;
return $this;
}
public function getStatut(): ?bool
{
return $this->statut;
}
public function setDateSuppression(?DateTime $dateSuppression): MarketPlace
{
$this->dateSuppression = $dateSuppression;
return $this;
}
public function getDateSuppression(): ?DateTime
{
return $this->dateSuppression;
}
public function setDateMaj(?DateTime $dateMaj): MarketPlace
{
$this->dateMaj = $dateMaj;
return $this;
}
public function getDateMaj(): ?DateTime
{
return $this->dateMaj;
}
public function __toString() {
return $this->libelle;
}
public function setCodeComptable(?string $codeComptable): MarketPlace
{
$this->codeComptable = $codeComptable;
return $this;
}
public function getCodeComptable(): ?string
{
return $this->codeComptable;
}
public function setUtilisateur(?Utilisateur $utilisateur): MarketPlace
{
$this->utilisateur = $utilisateur;
return $this;
}
public function getUtilisateur(): ?Utilisateur
{
return $this->utilisateur;
}
}