src/Entity/EditionsPlanner.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Service\PlanificationService;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity (repositoryClass="App\Repository\EditionsPlannerRepository")
  7.  */
  8. class EditionsPlanner
  9. {
  10.     /**
  11.      * @ORM\Id()
  12.      * @ORM\GeneratedValue()
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @var string|null
  18.      *
  19.      * @ORM\Column(name="name", type="string", length=255, nullable=true)
  20.      */
  21.     private $name;
  22.     /**
  23.      * @ORM\ManyToOne(targetEntity="App\Entity\User", inversedBy="editionsPlanners")
  24.      */
  25.     private $owner;
  26.     /**
  27.      * @var string|null
  28.      *
  29.      * @ORM\Column(name="service_name", type="string", length=255, nullable=true)
  30.      */
  31.     private $serviceName;
  32.     /**
  33.      * @var string|null
  34.      *
  35.      * @ORM\Column(name="params", type="string", length=64000, nullable=true)
  36.      */
  37.     private $params;
  38.     /**
  39.      * @ORM\Column(type="string", nullable=true)
  40.      */
  41.     private $texteVolee;
  42.     /**
  43.      * @ORM\Column(type="boolean", nullable=true)
  44.      */
  45.     private $includeCropMarks false;
  46.     /**
  47.      * @var string|null
  48.      *
  49.      * @ORM\Column(name="email", type="string", length=1000, nullable=true)
  50.      */
  51.     private $email;
  52.     /**
  53.      * @var string|null
  54.      *
  55.      * @ORM\Column(name="state", type="integer", nullable=true, options={"default" : 0})
  56.      */
  57.     private $state 0;
  58.     /**
  59.      * @var string|null
  60.      *
  61.      * @ORM\Column(name="created_at", type="datetime", nullable=true)
  62.      */
  63.     private $createdAt;
  64.     /**
  65.      * @var string|null
  66.      *
  67.      * @ORM\Column(name="processed_at", type="datetime", nullable=true)
  68.      */
  69.     private $processedAt;
  70.     /**
  71.      * @var string|null
  72.      *
  73.      * @ORM\Column(name="log", type="string", length=50000, nullable=true)
  74.      */
  75.     private $log;
  76.     /**
  77.      * @ORM\Column(type="boolean", nullable=true)
  78.      */
  79.     private $sendByEmail true;
  80.     /**
  81.      * @ORM\Column(type="string", length=50, nullable=true, options={"comment":"Type d'export (`PDF_UNIQUE`, `FICHE_PDF`, `FICHE_PDF_ZIP`, `FICHE_JPG`, `PAGE_JPG`)"})
  82.      */
  83.     private $exportMode;
  84.     /**
  85.      * @ORM\Column(type="string", length=5, nullable=true, options={"comment":"Type de réception (`EMAIL`, `FTP` ou `LIEN`)"})
  86.      */
  87.     private $receptionType;
  88.     /**
  89.      * @ORM\Column(type="json", nullable=true)
  90.      */
  91.     private $ftpData;
  92.     /**
  93.      * @ORM\Column(type="string", length=255, nullable=true)
  94.      */
  95.     private $permanentFilename;
  96.     /**
  97.      * @ORM\Column(type="boolean", nullable=true)
  98.      */
  99.     private $enableNotifications true;
  100.     /**
  101.      * @ORM\Column(type="string", length=255, nullable=true)
  102.      */
  103.     private $language 'fr';
  104.     /**
  105.      * @ORM\Column(type="string", length=2048, nullable=true)
  106.      */
  107.     private $callbackUrl;
  108.     /**
  109.      * @ORM\Column(type="string", length=2048, nullable=true)
  110.      */
  111.     private $UrlAuthToken;
  112.     /**
  113.      * @ORM\Column(type="string", length=2048, nullable=true)
  114.      */
  115.     private $generatedFileUrl;
  116.     /**
  117.      * @ORM\Column(type="bigint", length=255, nullable=true)
  118.      */
  119.     private $processId;
  120.     /**
  121.      * @ORM\Column(type="boolean", nullable=true, options={"default": false})
  122.      */
  123.     private $modeGuideAccueil;
  124.     /**
  125.      * @ORM\ManyToOne(targetEntity="App\Entity\Selection", inversedBy="guidesAccueilPlanners")
  126.      * @ORM\JoinColumn(name="selection_guide_accueil_id", referencedColumnName="id", nullable=true)
  127.      */
  128.     private $selectionGuideAccueil;
  129.     /**
  130.      * @ORM\ManyToOne(targetEntity="App\Entity\EditionPlanification", inversedBy="planners")
  131.      * @ORM\JoinColumn(name="planification_id", referencedColumnName="id", nullable=true)
  132.      */
  133.     private $planification;
  134.     /**
  135.      * @ORM\Column(type="integer", nullable=true)
  136.      */
  137.     private $rayonGuideAccueil;
  138.     /**
  139.      * @ORM\Column(type="string", nullable=true, options={"comment":"FIltre (`RAYON` ou `VILLE`)"})
  140.      */
  141.     private $filterGuideAccueil;
  142.     public function getId() : ?int
  143.     {
  144.         return $this->id;
  145.     }
  146.     public function getServiceName() : ?string
  147.     {
  148.         return $this->serviceName;
  149.     }
  150.     public function getOwner(): ?User
  151.     {
  152.         return $this->owner;
  153.     }
  154.     public function setOwner(?User $owner): self
  155.     {
  156.         $this->owner $owner;
  157.         return $this;
  158.     }
  159.     public function getPlanification(): ?EditionPlanification
  160.     {
  161.         return $this->planification;
  162.     }
  163.     public function setPlanification(?EditionPlanification $planification): self
  164.     {
  165.         $this->planification $planification;
  166.         return $this;
  167.     }
  168.     public function setServiceName(?string $serviceName) : self
  169.     {
  170.         $this->serviceName $serviceName;
  171.         return $this;
  172.     }
  173.     public function getParams() : ?string
  174.     {
  175.         return $this->params;
  176.     }
  177.     public function setParams(?string $params) : self
  178.     {
  179.         $this->params $params;
  180.         return $this;
  181.     }
  182.     public function getTexteVolee() : ?string
  183.     {
  184.         return $this->texteVolee;
  185.     }
  186.     public function setTexteVolee(?string $texteVolee) : self
  187.     {
  188.         $this->texteVolee $texteVolee;
  189.         return $this;
  190.     }
  191.     public function getIncludeCropMarks() : ?bool
  192.     {
  193.         return $this->includeCropMarks;
  194.     }
  195.     public function setIncludeCropMarks(?bool $includeCropMarks) : self
  196.     {        
  197.         $this->includeCropMarks $includeCropMarks;
  198.         return $this;
  199.     }
  200.     public function getEmail() : ?string
  201.     {
  202.         return $this->email;
  203.     }
  204.     public function setEmail(?string $email) : self
  205.     {
  206.         $this->email $email;
  207.         return $this;
  208.     }
  209.     public function getState()
  210.     {
  211.         return $this->state;
  212.     }
  213.     public function setState($state) : self
  214.     {
  215.         $this->state $state;
  216.         return $this;
  217.     }
  218.     public function getName() : ?string
  219.     {
  220.         return $this->name;
  221.     }
  222.     public function setName(?string $name) : self
  223.     {
  224.         $this->name $name;
  225.         return $this;
  226.     }
  227.     public function getCreatedAt() : ?\DateTimeInterface
  228.     {
  229.         return $this->createdAt;
  230.     }
  231.     public function setCreatedAt(?\DateTimeInterface $createdAt) : self
  232.     {
  233.         $this->createdAt $createdAt;
  234.         return $this;
  235.     }
  236.     public function getProcessedAt() : ?\DateTimeInterface
  237.     {
  238.         return $this->processedAt;
  239.     }
  240.     public function setProcessedAt(?\DateTimeInterface $processedAt) : self
  241.     {
  242.         $this->processedAt $processedAt;
  243.         return $this;
  244.     }
  245.     public function getLog() : ?string
  246.     {
  247.         return $this->log;
  248.     }
  249.     public function setLog(?string $log) : self
  250.     {
  251.         $this->log $log;
  252.         return $this;
  253.     }
  254.     public function getSendByEmail() : ?bool
  255.     {
  256.         return $this->sendByEmail;
  257.     }
  258.     public function setSendByEmail(?bool $sendByEmail) : self
  259.     {
  260.         $this->sendByEmail $sendByEmail;
  261.         return $this;
  262.     }
  263.     public function getExportMode(): ?string
  264.     {
  265.         return $this->exportMode;
  266.     }
  267.     public function setExportMode(?string $exportMode): self
  268.     {
  269.         $this->exportMode $exportMode;
  270.         return $this;
  271.     }
  272.     public function getReceptionType(): ?string
  273.     {
  274.         return $this->receptionType;
  275.     }
  276.     public function setReceptionType(?string $receptionType): self
  277.     {
  278.         $this->receptionType $receptionType;
  279.         return $this;
  280.     }
  281.     public function getFtpData() : ?array
  282.     {
  283.         return $this->ftpData;
  284.     }
  285.     public function setFtpData(?array $ftpData) : self
  286.     {
  287.         $this->ftpData $ftpData;
  288.         return $this;
  289.     }
  290.     public function getEnableNotifications() : ?bool
  291.     {
  292.         return $this->enableNotifications;
  293.     }
  294.     public function setEnableNotifications(?bool $enableNotifications) : self
  295.     {
  296.         $this->enableNotifications $enableNotifications;
  297.         return $this;
  298.     }
  299.     public function getLanguage() : ?string
  300.     {
  301.         return $this->language;
  302.     }
  303.     public function setLanguage(?string $language) : self
  304.     {
  305.         $this->language $language;
  306.         return $this;
  307.     }
  308.     public function getCallbackUrl() : ?string
  309.     {
  310.         return $this->callbackUrl;
  311.     }
  312.     public function setCallbackUrl(?string $callbackUrl) : self
  313.     {
  314.         $this->callbackUrl $callbackUrl;
  315.         return $this;
  316.     }
  317.     public function getUrlAuthToken() : ?string
  318.     {
  319.         return $this->UrlAuthToken;
  320.     }
  321.     public function setUrlAuthToken(?string $UrlAuthToken) : self
  322.     {
  323.         $this->UrlAuthToken $UrlAuthToken;
  324.         return $this;
  325.     }
  326.     public function getGeneratedFileUrl() : ?string
  327.     {
  328.         return $this->generatedFileUrl;
  329.     }
  330.     public function setGeneratedFileUrl(?string $generatedFileUrl) : self
  331.     {
  332.         $this->generatedFileUrl $generatedFileUrl;
  333.         return $this;
  334.     }
  335.     public function getProcessId() : ?int
  336.     {
  337.         return $this->processId;
  338.     }
  339.     public function setProcessId(?int $processId) : self
  340.     {
  341.         $this->processId $processId;
  342.         return $this;
  343.     }
  344.     public function getPermanentFilename(): ?string
  345.     {
  346.         return $this->permanentFilename;
  347.     }
  348.     public function setPermanentFilename(?string $permanentFilename): self
  349.     {
  350.         $permanentFilename PlanificationService::cleanFileName($permanentFilename);
  351.         $this->permanentFilename $permanentFilename;
  352.         return $this;
  353.     }
  354.     public function getModeGuideAccueil(): ?bool
  355.     {
  356.         return $this->modeGuideAccueil;
  357.     }
  358.     public function setModeGuideAccueil(?bool $modeGuideAccueil): self
  359.     {
  360.         $this->modeGuideAccueil $modeGuideAccueil;
  361.         return $this;
  362.     }
  363.     public function getSelectionGuideAccueil(): ?Selection
  364.     {
  365.         return $this->selectionGuideAccueil;
  366.     }
  367.     public function setSelectionGuideAccueil(?Selection $selectionGuideAccueil): self
  368.     {
  369.         $this->selectionGuideAccueil $selectionGuideAccueil;
  370.         return $this;
  371.     }
  372.     public function getRayonGuideAccueil(): ?int
  373.     {
  374.         return $this->rayonGuideAccueil;
  375.     }
  376.     public function setRayonGuideAccueil(?int $rayonGuideAccueil): self
  377.     {
  378.         $this->rayonGuideAccueil $rayonGuideAccueil;
  379.         return $this;
  380.     }
  381.     public function getFilterGuideAccueil(): ?string
  382.     {
  383.         return $this->filterGuideAccueil;
  384.     }
  385.     public function setFilterGuideAccueil(?string $filterGuideAccueil): self
  386.     {
  387.         $this->filterGuideAccueil $filterGuideAccueil;
  388.         return $this;
  389.     }
  390. }