<?php
namespace App\Entity\MarketPlace;
use DateTime;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
use Symfony\Component\Validator\Constraints as Assert;
/**
* Rapport
*
* @ORM\Table("market_place__rapport")
* @ORM\Entity(repositoryClass="App\Repository\MarketPlace\RapportRepository")
*/
class Rapport
{
/**
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @ORM\Column(name="etat", type="string", length=255, nullable=true)
*/
private $etat;
/**
* @ORM\Column(name="date", type="datetime", nullable=true)
*/
private $date;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\MarketPlace\MarketPlace", cascade={"persist"})
*/
private $marketPlace;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\MarketPlace\CompteMarketPlace", cascade={"persist"})
*/
private $compteMarketPlace;
/**
* @ORM\Column(name="statut", type="boolean", nullable=true)
*/
private $statut;
/**
* @ORM\Column(name="nb_annonces", type="text", nullable=true)
*/
private $nbAnnonces;
/**
* @ORM\Column(name="nb_annonces_ok", type="text", nullable=true)
*/
private $nbAnnoncesOk;
/**
* @ORM\Column(name="nb_annonces_erreur", type="text", nullable=true)
*/
private $nbAnnoncesErreur;
/**
* @ORM\Column(name="logs", type="text", nullable=true)
*/
private $logs;
/**
* @ORM\Column(name="logs_brut", type="text", nullable=true)
*/
private $logsBrut;
/**
* @ORM\Column(name="requete_xml", type="text", nullable=true)
*/
private $requeteXml;
/**
* @ORM\Column(name="FeedSubmissionId", type="string", length=255, nullable=true)
*/
private $FeedSubmissionId;
/**
* @ORM\Column(name="FeedType", type="string", length=255, nullable=true)
*/
private $FeedType;
/**
* @ORM\Column(name="ReportId", type="string", length=255, nullable=true)
*/
private $ReportId;
/**
* @ORM\Column(name="SubmittedDate", type="string", length=255, nullable=true)
*/
private $SubmittedDate;
/**
* @ORM\Column(name="FeedProcessingStatus", type="string", length=255, nullable=true)
*/
private $FeedProcessingStatus;
public function __construct()
{
$this->date = new Datetime();
$this->statut = False;
$this->nbAnnonces = "0";
$this->nbAnnoncesOk = "0";
$this->nbAnnoncesErreur = "0";
}
public function getId(): int
{
return $this->id;
}
public function setDate(?DateTime $date): Rapport
{
$this->date = $date;
return $this;
}
public function getDate(): ?DateTime
{
return $this->date;
}
public function setLogs(?string $logs): Rapport
{
$this->logs = $logs;
return $this;
}
public function getLogs(): ?string
{
return $this->logs;
}
public function setFeedSubmissionId(?string $feedSubmissionId): Rapport
{
$this->FeedSubmissionId = $feedSubmissionId;
return $this;
}
public function getFeedSubmissionId(): ?string
{
return $this->FeedSubmissionId;
}
public function setFeedType(?string $feedType): Rapport
{
$this->FeedType = $feedType;
return $this;
}
public function getFeedType(): ?string
{
return $this->FeedType;
}
public function setSubmittedDate(?string $submittedDate): Rapport
{
$this->SubmittedDate = $submittedDate;
return $this;
}
public function getSubmittedDate(): ?string
{
return $this->SubmittedDate;
}
public function setFeedProcessingStatus(?string $feedProcessingStatus): Rapport
{
$this->FeedProcessingStatus = $feedProcessingStatus;
return $this;
}
public function getFeedProcessingStatus(): ?string
{
return $this->FeedProcessingStatus;
}
public function setMarketPlace(?MarketPlace $marketPlace): Rapport
{
$this->marketPlace = $marketPlace;
return $this;
}
public function getMarketPlace(): ?MarketPlace
{
return $this->marketPlace;
}
public function setStatut(?bool $statut): Rapport
{
$this->statut = $statut;
return $this;
}
public function getStatut(): ?bool
{
return $this->statut;
}
public function setLogsBrut(?string $logsBrut): Rapport
{
$this->logsBrut = $logsBrut;
return $this;
}
public function getLogsBrut(): ?string
{
return $this->logsBrut;
}
public function setEtat(?string $etat): Rapport
{
$this->etat = $etat;
return $this;
}
public function getEtat(): ?string
{
return $this->etat;
}
public function setRequeteXml(?string $requeteXml): Rapport
{
$this->requeteXml = $requeteXml;
return $this;
}
public function getRequeteXml(): ?string
{
return $this->requeteXml;
}
public function setReportId(?string $reportId): Rapport
{
$this->ReportId = $reportId;
return $this;
}
public function getReportId(): ?string
{
return $this->ReportId;
}
public function setCompteMarketPlace(?CompteMarketPlace $compteMarketPlace): Rapport
{
$this->compteMarketPlace = $compteMarketPlace;
return $this;
}
public function getCompteMarketPlace(): ?CompteMarketPlace
{
return $this->compteMarketPlace;
}
public function setNbAnnonces(?string $nbAnnonces): Rapport
{
$this->nbAnnonces = $nbAnnonces;
return $this;
}
public function getNbAnnonces(): ?string
{
return $this->nbAnnonces;
}
public function setNbAnnoncesOk(?string $nbAnnoncesOk): Rapport
{
$this->nbAnnoncesOk = $nbAnnoncesOk;
return $this;
}
public function getNbAnnoncesOk(): ?string
{
return $this->nbAnnoncesOk;
}
public function setNbAnnoncesErreur(?string $nbAnnoncesErreur): Rapport
{
$this->nbAnnoncesErreur = $nbAnnoncesErreur;
return $this;
}
public function getNbAnnoncesErreur(): ?string
{
return $this->nbAnnoncesErreur;
}
public function __toString() {
return $this->feedType." (".$this->feedSubmissionId.")";
}
}