<?php
namespace App\Entity\MarketPlace;
use App\Entity\GestionComerciale\ModeReglement;
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;
/**
* CompteMarketPlace
*
* @ORM\Table("market_place__compte_market_place")
* @ORM\Entity(repositoryClass="App\Repository\MarketPlace\CompteMarketPlaceRepository")
* @Gedmo\SoftDeleteable(fieldName="dateSuppression",timeAware=false)
* @ORM\Entity
* @SecuredEntity (name="Compte market place", group="MARKETPLACE")
*/
class CompteMarketPlace
{
/**
* @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\ManyToOne(targetEntity="App\Entity\MarketPlace\MarketPlace", cascade={"persist"})
*/
private $marketPlace;
/**
* @ORM\Column(name="libelle", type="string", length=255,nullable=true)
* @Assert\NotBlank(message="Libellé obligatoire")
*/
private $libelle;
/**
* @ORM\Column(name="couleur", type="string", length=255,nullable=true)
*/
private $couleur;
/**
* @ORM\Column(name="identifiant", type="string", length=255,nullable=true)
*/
private $identifiant;
/**
* @ORM\Column(name="secret", type="string", length=255,nullable=true)
*/
private $secret;
/**
* @ORM\Column(name="cle", type="string", length=255,nullable=true)
*/
private $cle;
/**
* @ORM\Column(name="email", type="string", length=255,nullable=true)
*/
private $email;
/**
* @ORM\Column(name="pass", type="string", length=255,nullable=true)
*/
private $pass;
/**
* @ORM\Column(name="reference", type="string", length=255,nullable=true)
*/
private $reference;
/**
* @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)
* @Gedmo\Timestampable(on="update")
*/
private $dateMaj;
/**
* @ORM\Column(name="texte_complementaire", type="text", nullable=true)
*
*/
private $texteComplementaire;
/**
* @ORM\Column(name="titre_description_css", type="text", nullable=true)
*
*/
private $titreDescriptionCss;
/**
* @ORM\Column(name="description_css", type="text", nullable=true)
*
*/
private $descriptionCss;
/**
* @ORM\Column(name="appel_api_heure", type="integer", nullable=true)
*/
private $appelApiHeure;
/**
* @ORM\Column(name="appel_api_heure_limit", type="integer", nullable=true)
*/
private $appelApiHeureLimit;
/**
* @ORM\Column(name="appel_api_jour", type="integer", nullable=true)
*/
private $appelApiJour;
/**
* @ORM\Column(name="appel_api_jour_limit", type="integer", nullable=true)
*/
private $appelApiJourLimit;
/**
* @ORM\Column(name="auth_token", type="text", nullable=true)
*/
private $authToken;
/**
* @ORM\Column(name="refresh_token", type="text", nullable=true)
*/
private $refreshToken;
/**
* @ORM\Column(name="date_validite_auth_token", type="datetime", nullable=true)
*/
private $dateValiditeAuthToken;
/**
* @ORM\Column(name="dev_id", type="string", length=255,nullable=true)
*/
private $devID;
/**
* @var string
*
* @ORM\Column(name="logo", type="string", length=255, nullable=true)
*/
private $logo;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\GestionComerciale\ModeReglement")
* @ORM\JoinColumn(nullable=true)
*/
private $modereglement;
public function __construct()
{
$this->date = new Datetime();
$this->statut = true;
}
public function getId(): int
{
return $this->id;
}
public function setLibelle(?string $libelle): CompteMarketPlace
{
$this->libelle = $libelle;
return $this;
}
public function getLibelle(): ?string
{
return $this->libelle;
}
public function setReference(?string $reference): CompteMarketPlace
{
$this->reference = $reference;
return $this;
}
public function getReference(): ?string
{
return $this->reference;
}
public function setDate(?DateTime $date): CompteMarketPlace
{
$this->date = $date;
return $this;
}
public function getDate(): ?DateTime
{
return $this->date;
}
public function setStatut(?bool $statut): CompteMarketPlace
{
$this->statut = $statut;
return $this;
}
public function getStatut(): ?bool
{
return $this->statut;
}
public function setDateSuppression(?DateTime $dateSuppression): CompteMarketPlace
{
$this->dateSuppression = $dateSuppression;
return $this;
}
public function getDateSuppression(): ?DateTime
{
return $this->dateSuppression;
}
public function setDateMaj(?DateTime $dateMaj): CompteMarketPlace
{
$this->dateMaj = $dateMaj;
return $this;
}
public function getDateMaj(): ?DateTime
{
return $this->dateMaj;
}
public function setUtilisateur(?Utilisateur $utilisateur): CompteMarketPlace
{
$this->utilisateur = $utilisateur;
return $this;
}
public function getUtilisateur(): ?Utilisateur
{
return $this->utilisateur;
}
public function setIdentifiant(?string $identifiant): CompteMarketPlace
{
$this->identifiant = $identifiant;
return $this;
}
public function getIdentifiant(): ?string
{
return $this->identifiant;
}
public function setSecret(?string $secret): CompteMarketPlace
{
$this->secret = $secret;
return $this;
}
public function getSecret(): ?string
{
return $this->secret;
}
public function setCle(?string $cle): CompteMarketPlace
{
$this->cle = $cle;
return $this;
}
public function getCle(): ?string
{
return $this->cle;
}
public function setEmail(?string $email): CompteMarketPlace
{
$this->email = $email;
return $this;
}
public function getEmail(): ?string
{
return $this->email;
}
public function setPass(?string $pass): CompteMarketPlace
{
$this->pass = $pass;
return $this;
}
public function getPass(): ?string
{
return $this->pass;
}
public function setMarketPlace(?MarketPlace $marketPlace): CompteMarketPlace
{
$this->marketPlace = $marketPlace;
return $this;
}
public function getMarketPlace(): ?MarketPlace
{
return $this->marketPlace;
}
public function setTexteComplementaire(?string $texteComplementaire): CompteMarketPlace
{
$this->texteComplementaire = $texteComplementaire;
return $this;
}
public function getTexteComplementaire(): ?string
{
return $this->texteComplementaire;
}
public function setTitreDescriptionCss(?string $titreDescriptionCss): CompteMarketPlace
{
$this->titreDescriptionCss = $titreDescriptionCss;
return $this;
}
public function getTitreDescriptionCss(): ?string
{
return $this->titreDescriptionCss;
}
public function setDescriptionCss(?string $descriptionCss): CompteMarketPlace
{
$this->descriptionCss = $descriptionCss;
return $this;
}
public function getDescriptionCss(): ?string
{
return $this->descriptionCss;
}
public function setAppelApiHeure(?int $appelApiHeure): CompteMarketPlace
{
$this->appelApiHeure = $appelApiHeure;
return $this;
}
public function getAppelApiHeure(): ?int
{
return $this->appelApiHeure;
}
public function setAppelApiHeureLimit(?int $appelApiHeureLimit): CompteMarketPlace
{
$this->appelApiHeureLimit = $appelApiHeureLimit;
return $this;
}
public function getAppelApiHeureLimit(): ?int
{
return $this->appelApiHeureLimit;
}
public function setAppelApiJour(?int $appelApiJour): CompteMarketPlace
{
$this->appelApiJour = $appelApiJour;
return $this;
}
public function getAppelApiJour(): ?int
{
return $this->appelApiJour;
}
public function setAppelApiJourLimit(?int $appelApiJourLimit): CompteMarketPlace
{
$this->appelApiJourLimit = $appelApiJourLimit;
return $this;
}
public function getAppelApiJourLimit(): ?int
{
return $this->appelApiJourLimit;
}
public function setCouleur(?string $couleur): CompteMarketPlace
{
$this->couleur = $couleur;
return $this;
}
public function getCouleur(): ?string
{
return $this->couleur;
}
public function setAuthToken(?string $authToken): CompteMarketPlace
{
$this->authToken = $authToken;
return $this;
}
public function getAuthToken(): ?string
{
return $this->authToken;
}
public function setDateValiditeAuthToken(?DateTime $dateValiditeAuthToken): CompteMarketPlace
{
$this->dateValiditeAuthToken = $dateValiditeAuthToken;
return $this;
}
public function getDateValiditeAuthToken(): ?DateTime
{
return $this->dateValiditeAuthToken;
}
public function setDevID(?string $devID): CompteMarketPlace
{
$this->devID = $devID;
return $this;
}
public function getDevID(): ?string
{
return $this->devID;
}
public function setRefreshToken(?string $refreshToken): CompteMarketPlace
{
$this->refreshToken = $refreshToken;
return $this;
}
public function getRefreshToken(): ?string
{
return $this->refreshToken;
}
public function setLogo(?string $logo): CompteMarketPlace
{
$this->logo = $logo;
return $this;
}
public function getLogo(): ?string
{
return $this->logo;
}
public function getLogoDir(): string
{
return 'uploads/logos/compteMarketPlace';
}
public function setModereglement(?ModeReglement $modereglement): CompteMarketPlace
{
$this->modereglement = $modereglement;
return $this;
}
public function getModereglement(): ?ModeReglement
{
return $this->modereglement;
}
}