<?php
namespace App\Entity;
use App\Service\PlanificationService;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity (repositoryClass="App\Repository\EditionsPlannerRepository")
*/
class EditionsPlanner
{
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
private $id;
/**
* @var string|null
*
* @ORM\Column(name="name", type="string", length=255, nullable=true)
*/
private $name;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\User", inversedBy="editionsPlanners")
*/
private $owner;
/**
* @var string|null
*
* @ORM\Column(name="service_name", type="string", length=255, nullable=true)
*/
private $serviceName;
/**
* @var string|null
*
* @ORM\Column(name="params", type="string", length=64000, nullable=true)
*/
private $params;
/**
* @ORM\Column(type="string", nullable=true)
*/
private $texteVolee;
/**
* @var string|null
*
* @ORM\Column(name="email", type="string", length=1000, nullable=true)
*/
private $email;
/**
* @var string|null
*
* @ORM\Column(name="state", type="integer", nullable=true, options={"default" : 0})
*/
private $state = 0;
/**
* @var string|null
*
* @ORM\Column(name="created_at", type="datetime", nullable=true)
*/
private $createdAt;
/**
* @var string|null
*
* @ORM\Column(name="processed_at", type="datetime", nullable=true)
*/
private $processedAt;
/**
* @var string|null
*
* @ORM\Column(name="log", type="string", length=50000, nullable=true)
*/
private $log;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $sendByEmail = true;
/**
* @ORM\Column(type="string", length=50, nullable=true, options={"comment":"Type d'export (`PDF_UNIQUE`, `FICHE_PDF`, `FICHE_JPG`, `PAGE_JPG`)"})
*/
private $exportMode;
/**
* @ORM\Column(type="string", length=5, nullable=true, options={"comment":"Type de réception (`EMAIL`, `FTP` ou `LIEN`)"})
*/
private $receptionType;
/**
* @ORM\Column(type="json", nullable=true)
*/
private $ftpData;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $permanentFilename;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $enableNotifications = true;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $language = 'fr';
/**
* @ORM\Column(type="string", length=2048, nullable=true)
*/
private $callbackUrl;
/**
* @ORM\Column(type="string", length=2048, nullable=true)
*/
private $UrlAuthToken;
/**
* @ORM\Column(type="string", length=2048, nullable=true)
*/
private $generatedFileUrl;
/**
* @ORM\Column(type="bigint", length=255, nullable=true)
*/
private $processId;
/**
* @ORM\Column(type="boolean", nullable=true, options={"default": false})
*/
private $modeGuideAccueil;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Selection", inversedBy="guidesAccueilPlanners")
* @ORM\JoinColumn(name="selection_guide_accueil_id", referencedColumnName="id", nullable=true)
*/
private $selectionGuideAccueil;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\EditionPlanification", inversedBy="planners")
* @ORM\JoinColumn(name="planification_id", referencedColumnName="id", nullable=true)
*/
private $planification;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $rayonGuideAccueil;
/**
* @ORM\Column(type="string", nullable=true, options={"comment":"FIltre (`RAYON` ou `VILLE`)"})
*/
private $filterGuideAccueil;
public function getId() : ?int
{
return $this->id;
}
public function getServiceName() : ?string
{
return $this->serviceName;
}
public function getOwner(): ?User
{
return $this->owner;
}
public function setOwner(?User $owner): self
{
$this->owner = $owner;
return $this;
}
public function getPlanification(): ?EditionPlanification
{
return $this->planification;
}
public function setPlanification(?EditionPlanification $planification): self
{
$this->planification = $planification;
return $this;
}
public function setServiceName(?string $serviceName) : self
{
$this->serviceName = $serviceName;
return $this;
}
public function getParams() : ?string
{
return $this->params;
}
public function setParams(?string $params) : self
{
$this->params = $params;
return $this;
}
public function getTexteVolee() : ?string
{
return $this->texteVolee;
}
public function setTexteVolee(?string $texteVolee) : self
{
$this->texteVolee = $texteVolee;
return $this;
}
public function getEmail() : ?string
{
return $this->email;
}
public function setEmail(?string $email) : self
{
$this->email = $email;
return $this;
}
public function getState()
{
return $this->state;
}
public function setState($state) : self
{
$this->state = $state;
return $this;
}
public function getName() : ?string
{
return $this->name;
}
public function setName(?string $name) : self
{
$this->name = $name;
return $this;
}
public function getCreatedAt() : ?\DateTimeInterface
{
return $this->createdAt;
}
public function setCreatedAt(?\DateTimeInterface $createdAt) : self
{
$this->createdAt = $createdAt;
return $this;
}
public function getProcessedAt() : ?\DateTimeInterface
{
return $this->processedAt;
}
public function setProcessedAt(?\DateTimeInterface $processedAt) : self
{
$this->processedAt = $processedAt;
return $this;
}
public function getLog() : ?string
{
return $this->log;
}
public function setLog(?string $log) : self
{
$this->log = $log;
return $this;
}
public function getSendByEmail() : ?bool
{
return $this->sendByEmail;
}
public function setSendByEmail(?bool $sendByEmail) : self
{
$this->sendByEmail = $sendByEmail;
return $this;
}
public function getExportMode(): ?string
{
return $this->exportMode;
}
public function setExportMode(?string $exportMode): self
{
$this->exportMode = $exportMode;
return $this;
}
public function getReceptionType(): ?string
{
return $this->receptionType;
}
public function setReceptionType(?string $receptionType): self
{
$this->receptionType = $receptionType;
return $this;
}
public function getFtpData() : ?array
{
return $this->ftpData;
}
public function setFtpData(?array $ftpData) : self
{
$this->ftpData = $ftpData;
return $this;
}
public function getEnableNotifications() : ?bool
{
return $this->enableNotifications;
}
public function setEnableNotifications(?bool $enableNotifications) : self
{
$this->enableNotifications = $enableNotifications;
return $this;
}
public function getLanguage() : ?string
{
return $this->language;
}
public function setLanguage(?string $language) : self
{
$this->language = $language;
return $this;
}
public function getCallbackUrl() : ?string
{
return $this->callbackUrl;
}
public function setCallbackUrl(?string $callbackUrl) : self
{
$this->callbackUrl = $callbackUrl;
return $this;
}
public function getUrlAuthToken() : ?string
{
return $this->UrlAuthToken;
}
public function setUrlAuthToken(?string $UrlAuthToken) : self
{
$this->UrlAuthToken = $UrlAuthToken;
return $this;
}
public function getGeneratedFileUrl() : ?string
{
return $this->generatedFileUrl;
}
public function setGeneratedFileUrl(?string $generatedFileUrl) : self
{
$this->generatedFileUrl = $generatedFileUrl;
return $this;
}
public function getProcessId() : ?int
{
return $this->processId;
}
public function setProcessId(?int $processId) : self
{
$this->processId = $processId;
return $this;
}
public function getPermanentFilename(): ?string
{
return $this->permanentFilename;
}
public function setPermanentFilename(?string $permanentFilename): self
{
$permanentFilename = PlanificationService::cleanFileName($permanentFilename);
$this->permanentFilename = $permanentFilename;
return $this;
}
public function getModeGuideAccueil(): ?bool
{
return $this->modeGuideAccueil;
}
public function setModeGuideAccueil(?bool $modeGuideAccueil): self
{
$this->modeGuideAccueil = $modeGuideAccueil;
return $this;
}
public function getSelectionGuideAccueil(): ?Selection
{
return $this->selectionGuideAccueil;
}
public function setSelectionGuideAccueil(?Selection $selectionGuideAccueil): self
{
$this->selectionGuideAccueil = $selectionGuideAccueil;
return $this;
}
public function getRayonGuideAccueil(): ?int
{
return $this->rayonGuideAccueil;
}
public function setRayonGuideAccueil(?int $rayonGuideAccueil): self
{
$this->rayonGuideAccueil = $rayonGuideAccueil;
return $this;
}
public function getFilterGuideAccueil(): ?string
{
return $this->filterGuideAccueil;
}
public function setFilterGuideAccueil(?string $filterGuideAccueil): self
{
$this->filterGuideAccueil = $filterGuideAccueil;
return $this;
}
}