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