src/Entity/MarketPlace/CompteMarketPlace.php line 21

Open in your IDE?
  1. <?php
  2. namespace App\Entity\MarketPlace;
  3. use App\Entity\GestionComerciale\ModeReglement;
  4. use App\Entity\Utilisateur\Utilisateur;
  5. use DateTime;
  6. use Doctrine\ORM\Mapping as ORM;
  7. use Gedmo\Mapping\Annotation as Gedmo;
  8. use Symfony\Component\Validator\Constraints as Assert;
  9. use App\Annotations\SecuredEntity;
  10. /**
  11.  * CompteMarketPlace
  12.  *
  13.  * @ORM\Table("market_place__compte_market_place")
  14.  * @ORM\Entity(repositoryClass="App\Repository\MarketPlace\CompteMarketPlaceRepository")
  15.  * @Gedmo\SoftDeleteable(fieldName="dateSuppression",timeAware=false)
  16.  * @ORM\Entity
  17.  * @SecuredEntity (name="Compte market place", group="MARKETPLACE")
  18.  */
  19. class CompteMarketPlace
  20. {
  21.     /**
  22.      * @ORM\Column(name="id", type="integer")
  23.      * @ORM\Id
  24.      * @ORM\GeneratedValue(strategy="AUTO")
  25.      */
  26.     private $id;
  27.     /**
  28.      * @ORM\ManyToOne(targetEntity="App\Entity\Utilisateur\Utilisateur")
  29.      * @ORM\JoinColumn(nullable=true)
  30.      */
  31.     private $utilisateur;
  32.     /**
  33.      * @ORM\ManyToOne(targetEntity="App\Entity\MarketPlace\MarketPlace", cascade={"persist"})
  34.      */
  35.     private $marketPlace;
  36.     /**
  37.      * @ORM\Column(name="libelle", type="string", length=255,nullable=true)
  38.      * @Assert\NotBlank(message="LibellĂ© obligatoire")
  39.      */
  40.     private $libelle;
  41.     /**
  42.      * @ORM\Column(name="couleur", type="string", length=255,nullable=true)
  43.      */
  44.     private $couleur;
  45.     /**
  46.      * @ORM\Column(name="identifiant", type="string", length=255,nullable=true)
  47.      */
  48.     private $identifiant;
  49.     /**
  50.      * @ORM\Column(name="secret", type="string", length=255,nullable=true)
  51.      */
  52.     private $secret;
  53.     /**
  54.      * @ORM\Column(name="cle", type="string", length=255,nullable=true)
  55.      */
  56.     private $cle;
  57.     /**
  58.      * @ORM\Column(name="email", type="string", length=255,nullable=true)
  59.      */
  60.     private $email;
  61.     /**
  62.      * @ORM\Column(name="pass", type="string", length=255,nullable=true)
  63.      */
  64.     private $pass;
  65.     /**
  66.      * @ORM\Column(name="reference", type="string", length=255,nullable=true)
  67.      */
  68.     private $reference;
  69.     /**
  70.      * @ORM\Column(name="date", type="datetime",nullable=true)
  71.      */
  72.     private $date;
  73.     /**
  74.      * @ORM\Column(name="statut", type="boolean",nullable=true)
  75.      */
  76.     private $statut;
  77.     /**
  78.      * @ORM\Column(name="dateSuppression", type="datetime",nullable=true)
  79.      */
  80.     private $dateSuppression;
  81.     /**
  82.      * @ORM\Column(name="dateMaj", type="datetime",nullable=true)
  83.      * @Gedmo\Timestampable(on="update")
  84.      */
  85.     private $dateMaj;
  86.     /**
  87.      * @ORM\Column(name="texte_complementaire", type="text", nullable=true)
  88.      *
  89.      */
  90.     private $texteComplementaire;
  91.     /**
  92.      * @ORM\Column(name="titre_description_css", type="text", nullable=true)
  93.      *
  94.      */
  95.     private $titreDescriptionCss;
  96.     /**
  97.      * @ORM\Column(name="description_css", type="text", nullable=true)
  98.      *
  99.      */
  100.     private $descriptionCss;
  101.     /**
  102.      * @ORM\Column(name="appel_api_heure", type="integer", nullable=true)
  103.      */
  104.     private $appelApiHeure;
  105.     /**
  106.      * @ORM\Column(name="appel_api_heure_limit", type="integer", nullable=true)
  107.      */
  108.     private $appelApiHeureLimit;
  109.     /**
  110.      * @ORM\Column(name="appel_api_jour", type="integer", nullable=true)
  111.      */
  112.     private $appelApiJour;
  113.     /**
  114.      * @ORM\Column(name="appel_api_jour_limit", type="integer", nullable=true)
  115.      */
  116.     private $appelApiJourLimit;
  117.     /**
  118.      * @ORM\Column(name="auth_token", type="text", nullable=true)
  119.      */
  120.     private $authToken;
  121.     /**
  122.      * @ORM\Column(name="refresh_token", type="text", nullable=true)
  123.      */
  124.     private $refreshToken;
  125.     /**
  126.      * @ORM\Column(name="date_validite_auth_token", type="datetime", nullable=true)
  127.      */
  128.     private $dateValiditeAuthToken;
  129.     /**
  130.      * @ORM\Column(name="dev_id", type="string", length=255,nullable=true)
  131.      */
  132.     private $devID;
  133.     /**
  134.      * @var string
  135.      *
  136.      * @ORM\Column(name="logo", type="string", length=255, nullable=true)
  137.      */
  138.     private $logo;
  139.     /**
  140.      * @ORM\ManyToOne(targetEntity="App\Entity\GestionComerciale\ModeReglement")
  141.      * @ORM\JoinColumn(nullable=true)
  142.      */
  143.     private $modereglement;
  144.     public function __construct()
  145.     {
  146.         $this->date = new Datetime();
  147.         $this->statut true;
  148.     }
  149.     public function getId(): int
  150.     {
  151.         return $this->id;
  152.     }
  153.     public function setLibelle(?string $libelle): CompteMarketPlace
  154.     {
  155.         $this->libelle $libelle;
  156.         return $this;
  157.     }
  158.     public function getLibelle(): ?string
  159.     {
  160.         return $this->libelle;
  161.     }
  162.     public function setReference(?string $reference): CompteMarketPlace
  163.     {
  164.         $this->reference $reference;
  165.         return $this;
  166.     }
  167.     public function getReference(): ?string
  168.     {
  169.         return $this->reference;
  170.     }
  171.     public function setDate(?DateTime $date): CompteMarketPlace
  172.     {
  173.         $this->date $date;
  174.         return $this;
  175.     }
  176.     public function getDate(): ?DateTime
  177.     {
  178.         return $this->date;
  179.     }
  180.     public function setStatut(?bool $statut): CompteMarketPlace
  181.     {
  182.         $this->statut $statut;
  183.         return $this;
  184.     }
  185.     public function getStatut(): ?bool
  186.     {
  187.         return $this->statut;
  188.     }
  189.     public function setDateSuppression(?DateTime $dateSuppression): CompteMarketPlace
  190.     {
  191.         $this->dateSuppression $dateSuppression;
  192.         return $this;
  193.     }
  194.     public function getDateSuppression(): ?DateTime
  195.     {
  196.         return $this->dateSuppression;
  197.     }
  198.     public function setDateMaj(?DateTime $dateMaj): CompteMarketPlace
  199.     {
  200.         $this->dateMaj $dateMaj;
  201.         return $this;
  202.     }
  203.     public function getDateMaj(): ?DateTime
  204.     {
  205.         return $this->dateMaj;
  206.     }
  207.     public function setUtilisateur(?Utilisateur $utilisateur): CompteMarketPlace
  208.     {
  209.         $this->utilisateur $utilisateur;
  210.         return $this;
  211.     }
  212.     public function getUtilisateur(): ?Utilisateur
  213.     {
  214.         return $this->utilisateur;
  215.     }
  216.     public function setIdentifiant(?string $identifiant): CompteMarketPlace
  217.     {
  218.         $this->identifiant $identifiant;
  219.         return $this;
  220.     }
  221.     public function getIdentifiant(): ?string
  222.     {
  223.         return $this->identifiant;
  224.     }
  225.     public function setSecret(?string $secret): CompteMarketPlace
  226.     {
  227.         $this->secret $secret;
  228.         return $this;
  229.     }
  230.     public function getSecret(): ?string
  231.     {
  232.         return $this->secret;
  233.     }
  234.     public function setCle(?string $cle): CompteMarketPlace
  235.     {
  236.         $this->cle $cle;
  237.         return $this;
  238.     }
  239.     public function getCle(): ?string
  240.     {
  241.         return $this->cle;
  242.     }
  243.     public function setEmail(?string $email): CompteMarketPlace
  244.     {
  245.         $this->email $email;
  246.         return $this;
  247.     }
  248.     public function getEmail(): ?string
  249.     {
  250.         return $this->email;
  251.     }
  252.     public function setPass(?string $pass): CompteMarketPlace
  253.     {
  254.         $this->pass $pass;
  255.         return $this;
  256.     }
  257.     public function getPass(): ?string
  258.     {
  259.         return $this->pass;
  260.     }
  261.     public function setMarketPlace(?MarketPlace $marketPlace): CompteMarketPlace
  262.     {
  263.         $this->marketPlace $marketPlace;
  264.         return $this;
  265.     }
  266.     public function getMarketPlace(): ?MarketPlace
  267.     {
  268.         return $this->marketPlace;
  269.     }
  270.     public function setTexteComplementaire(?string $texteComplementaire): CompteMarketPlace
  271.     {
  272.         $this->texteComplementaire $texteComplementaire;
  273.         return $this;
  274.     }
  275.     public function getTexteComplementaire(): ?string
  276.     {
  277.         return $this->texteComplementaire;
  278.     }
  279.     public function setTitreDescriptionCss(?string $titreDescriptionCss): CompteMarketPlace
  280.     {
  281.         $this->titreDescriptionCss $titreDescriptionCss;
  282.         return $this;
  283.     }
  284.     public function getTitreDescriptionCss(): ?string
  285.     {
  286.         return $this->titreDescriptionCss;
  287.     }
  288.     public function setDescriptionCss(?string $descriptionCss): CompteMarketPlace
  289.     {
  290.         $this->descriptionCss $descriptionCss;
  291.         return $this;
  292.     }
  293.     public function getDescriptionCss(): ?string
  294.     {
  295.         return $this->descriptionCss;
  296.     }
  297.     public function setAppelApiHeure(?int $appelApiHeure): CompteMarketPlace
  298.     {
  299.         $this->appelApiHeure $appelApiHeure;
  300.         return $this;
  301.     }
  302.     public function getAppelApiHeure(): ?int
  303.     {
  304.         return $this->appelApiHeure;
  305.     }
  306.     public function setAppelApiHeureLimit(?int $appelApiHeureLimit): CompteMarketPlace
  307.     {
  308.         $this->appelApiHeureLimit $appelApiHeureLimit;
  309.         return $this;
  310.     }
  311.     public function getAppelApiHeureLimit(): ?int
  312.     {
  313.         return $this->appelApiHeureLimit;
  314.     }
  315.     public function setAppelApiJour(?int $appelApiJour): CompteMarketPlace
  316.     {
  317.         $this->appelApiJour $appelApiJour;
  318.         return $this;
  319.     }
  320.     public function getAppelApiJour(): ?int
  321.     {
  322.         return $this->appelApiJour;
  323.     }
  324.     public function setAppelApiJourLimit(?int $appelApiJourLimit): CompteMarketPlace
  325.     {
  326.         $this->appelApiJourLimit $appelApiJourLimit;
  327.         return $this;
  328.     }
  329.     public function getAppelApiJourLimit(): ?int
  330.     {
  331.         return $this->appelApiJourLimit;
  332.     }
  333.     public function setCouleur(?string $couleur): CompteMarketPlace
  334.     {
  335.         $this->couleur $couleur;
  336.         return $this;
  337.     }
  338.     public function getCouleur(): ?string
  339.     {
  340.         return $this->couleur;
  341.     }
  342.     public function setAuthToken(?string $authToken): CompteMarketPlace
  343.     {
  344.         $this->authToken $authToken;
  345.         return $this;
  346.     }
  347.     public function getAuthToken(): ?string
  348.     {
  349.         return $this->authToken;
  350.     }
  351.     public function setDateValiditeAuthToken(?DateTime $dateValiditeAuthToken): CompteMarketPlace
  352.     {
  353.         $this->dateValiditeAuthToken $dateValiditeAuthToken;
  354.         return $this;
  355.     }
  356.     public function getDateValiditeAuthToken(): ?DateTime
  357.     {
  358.         return $this->dateValiditeAuthToken;
  359.     }
  360.     public function setDevID(?string $devID): CompteMarketPlace
  361.     {
  362.         $this->devID $devID;
  363.         return $this;
  364.     }
  365.     public function getDevID(): ?string
  366.     {
  367.         return $this->devID;
  368.     }
  369.     public function setRefreshToken(?string $refreshToken): CompteMarketPlace
  370.     {
  371.         $this->refreshToken $refreshToken;
  372.         return $this;
  373.     }
  374.     public function getRefreshToken(): ?string
  375.     {
  376.         return $this->refreshToken;
  377.     }
  378.     public function setLogo(?string $logo): CompteMarketPlace
  379.     {
  380.         $this->logo $logo;
  381.         return $this;
  382.     }
  383.     public function getLogo(): ?string
  384.     {
  385.         return $this->logo;
  386.     }
  387.     public function getLogoDir(): string
  388.     {
  389.         return 'uploads/logos/compteMarketPlace';
  390.     }
  391.     public function setModereglement(?ModeReglement $modereglement): CompteMarketPlace
  392.     {
  393.         $this->modereglement $modereglement;
  394.         return $this;
  395.     }
  396.     public function getModereglement(): ?ModeReglement
  397.     {
  398.         return $this->modereglement;
  399.     }
  400. }