src/Entity/MarketPlace/Rapport.php line 16

Open in your IDE?
  1. <?php
  2. namespace App\Entity\MarketPlace;
  3. use DateTime;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Gedmo\Mapping\Annotation as Gedmo;
  6. use Symfony\Component\Validator\Constraints as Assert;
  7. /**
  8.  * Rapport
  9.  *
  10.  * @ORM\Table("market_place__rapport")
  11.  * @ORM\Entity(repositoryClass="App\Repository\MarketPlace\RapportRepository")
  12.  */
  13. class Rapport
  14. {
  15.     /**
  16.      * @ORM\Column(name="id", type="integer")
  17.      * @ORM\Id
  18.      * @ORM\GeneratedValue(strategy="AUTO")
  19.      */
  20.     private $id;
  21.     
  22.     /**
  23.      * @ORM\Column(name="etat", type="string", length=255, nullable=true)
  24.      */
  25.     private $etat;    
  26.     /**
  27.      * @ORM\Column(name="date", type="datetime", nullable=true)
  28.      */
  29.     private $date;
  30.     
  31.     /**
  32.      * @ORM\ManyToOne(targetEntity="App\Entity\MarketPlace\MarketPlace", cascade={"persist"})
  33.      */
  34.     private $marketPlace;  
  35.     
  36.     /**
  37.      * @ORM\ManyToOne(targetEntity="App\Entity\MarketPlace\CompteMarketPlace", cascade={"persist"})
  38.      */
  39.     private $compteMarketPlace;  
  40.     
  41.     /**
  42.      * @ORM\Column(name="statut", type="boolean", nullable=true)
  43.      */
  44.     private $statut;    
  45.     /**
  46.      * @ORM\Column(name="nb_annonces", type="text", nullable=true)
  47.      */
  48.     private $nbAnnonces;
  49.     
  50.     /**
  51.      * @ORM\Column(name="nb_annonces_ok", type="text", nullable=true)
  52.      */
  53.     private $nbAnnoncesOk;
  54.     
  55.     /**
  56.      * @ORM\Column(name="nb_annonces_erreur", type="text", nullable=true)
  57.      */
  58.     private $nbAnnoncesErreur;
  59.     
  60.     /**
  61.      * @ORM\Column(name="logs", type="text", nullable=true)
  62.      */
  63.     private $logs;
  64.     
  65.     /**
  66.      * @ORM\Column(name="logs_brut", type="text", nullable=true)
  67.      */
  68.     private $logsBrut;
  69.     
  70.     /**
  71.      * @ORM\Column(name="requete_xml", type="text", nullable=true)
  72.      */
  73.     private $requeteXml;
  74.     
  75.     /**
  76.      * @ORM\Column(name="FeedSubmissionId", type="string", length=255, nullable=true)
  77.      */
  78.     private $FeedSubmissionId;
  79.     
  80.     /**
  81.      * @ORM\Column(name="FeedType", type="string", length=255, nullable=true)
  82.      */
  83.     private $FeedType;
  84.     
  85.     /**
  86.      * @ORM\Column(name="ReportId", type="string", length=255, nullable=true)
  87.      */
  88.     private $ReportId;
  89.     
  90.     /**
  91.      * @ORM\Column(name="SubmittedDate", type="string", length=255, nullable=true)
  92.      */
  93.     private $SubmittedDate;
  94.     
  95.     /**
  96.      * @ORM\Column(name="FeedProcessingStatus", type="string", length=255, nullable=true)
  97.      */
  98.     private $FeedProcessingStatus;
  99.     public function __construct()
  100.     {
  101.         $this->date = new Datetime();
  102.         $this->statut False;
  103.         $this->nbAnnonces "0";
  104.         $this->nbAnnoncesOk "0";
  105.         $this->nbAnnoncesErreur "0";
  106.     }
  107.     public function getId(): int
  108.     {
  109.         return $this->id;
  110.     }
  111.     public function setDate(?DateTime $date): Rapport
  112.     {
  113.         $this->date $date;
  114.         return $this;
  115.     }
  116.     public function getDate(): ?DateTime
  117.     {
  118.         return $this->date;
  119.     }
  120.     public function setLogs(?string $logs): Rapport
  121.     {
  122.         $this->logs $logs;
  123.         return $this;
  124.     }
  125.     public function getLogs(): ?string
  126.     {
  127.         return $this->logs;
  128.     }
  129.     public function setFeedSubmissionId(?string $feedSubmissionId): Rapport
  130.     {
  131.         $this->FeedSubmissionId $feedSubmissionId;
  132.         return $this;
  133.     }
  134.     public function getFeedSubmissionId(): ?string
  135.     {
  136.         return $this->FeedSubmissionId;
  137.     }
  138.     public function setFeedType(?string $feedType): Rapport
  139.     {
  140.         $this->FeedType $feedType;
  141.         return $this;
  142.     }
  143.     public function getFeedType(): ?string
  144.     {
  145.         return $this->FeedType;
  146.     }
  147.     public function setSubmittedDate(?string $submittedDate): Rapport
  148.     {
  149.         $this->SubmittedDate $submittedDate;
  150.         return $this;
  151.     }
  152.     public function getSubmittedDate(): ?string
  153.     {
  154.         return $this->SubmittedDate;
  155.     }
  156.     public function setFeedProcessingStatus(?string $feedProcessingStatus): Rapport
  157.     {
  158.         $this->FeedProcessingStatus $feedProcessingStatus;
  159.         return $this;
  160.     }
  161.     public function getFeedProcessingStatus(): ?string
  162.     {
  163.         return $this->FeedProcessingStatus;
  164.     }
  165.     public function setMarketPlace(?MarketPlace $marketPlace): Rapport
  166.     {
  167.         $this->marketPlace $marketPlace;
  168.         return $this;
  169.     }
  170.     public function getMarketPlace(): ?MarketPlace
  171.     {
  172.         return $this->marketPlace;
  173.     }
  174.     public function setStatut(?bool $statut): Rapport
  175.     {
  176.         $this->statut $statut;
  177.         return $this;
  178.     }
  179.     public function getStatut(): ?bool
  180.     {
  181.         return $this->statut;
  182.     }
  183.     public function setLogsBrut(?string $logsBrut): Rapport
  184.     {
  185.         $this->logsBrut $logsBrut;
  186.         return $this;
  187.     }
  188.     public function getLogsBrut(): ?string
  189.     {
  190.         return $this->logsBrut;
  191.     }
  192.     public function setEtat(?string $etat): Rapport
  193.     {
  194.         $this->etat $etat;
  195.         return $this;
  196.     }
  197.     public function getEtat(): ?string
  198.     {
  199.         return $this->etat;
  200.     }
  201.     public function setRequeteXml(?string $requeteXml): Rapport
  202.     {
  203.         $this->requeteXml $requeteXml;
  204.         return $this;
  205.     }
  206.     public function getRequeteXml(): ?string
  207.     {
  208.         return $this->requeteXml;
  209.     }
  210.     public function setReportId(?string $reportId): Rapport
  211.     {
  212.         $this->ReportId $reportId;
  213.         return $this;
  214.     }
  215.     public function getReportId(): ?string
  216.     {
  217.         return $this->ReportId;
  218.     }
  219.     public function setCompteMarketPlace(?CompteMarketPlace $compteMarketPlace): Rapport
  220.     {
  221.         $this->compteMarketPlace $compteMarketPlace;
  222.         return $this;
  223.     }
  224.     public function getCompteMarketPlace(): ?CompteMarketPlace
  225.     {
  226.         return $this->compteMarketPlace;
  227.     }
  228.     public function setNbAnnonces(?string $nbAnnonces): Rapport
  229.     {
  230.         $this->nbAnnonces $nbAnnonces;
  231.         return $this;
  232.     }
  233.     public function getNbAnnonces(): ?string
  234.     {
  235.         return $this->nbAnnonces;
  236.     }
  237.     public function setNbAnnoncesOk(?string $nbAnnoncesOk): Rapport
  238.     {
  239.         $this->nbAnnoncesOk $nbAnnoncesOk;
  240.         return $this;
  241.     }
  242.     public function getNbAnnoncesOk(): ?string
  243.     {
  244.         return $this->nbAnnoncesOk;
  245.     }
  246.     public function setNbAnnoncesErreur(?string $nbAnnoncesErreur): Rapport
  247.     {
  248.         $this->nbAnnoncesErreur $nbAnnoncesErreur;
  249.         return $this;
  250.     }
  251.     public function getNbAnnoncesErreur(): ?string
  252.     {
  253.         return $this->nbAnnoncesErreur;
  254.     }
  255.     
  256.     public function __toString() {
  257.         return $this->feedType." (".$this->feedSubmissionId.")";
  258.     }
  259.     
  260. }