src/Entity/ProjectSettings.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ProjectSettingsRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassProjectSettingsRepository::class)]
  7. class ProjectSettings
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\OneToOne(inversedBy'projectSettings'cascade: ['persist''remove'])]
  14.     #[ORM\JoinColumn(nullablefalse)]
  15.     private ?Project $project null;
  16.     #[ORM\Column]
  17.     private array $wording = [];
  18.     #[ORM\Column]
  19.     private ?bool $hasComment null;
  20.     #[ORM\Column]
  21.     private ?bool $hasTinyUrlComment null;
  22.     #[ORM\Column]
  23.     private ?bool $hasInfoPopup null;
  24.     #[ORM\Column]
  25.     private ?bool $hasDPI null;
  26.     #[ORM\Column(length255)]
  27.     private ?string $defaultBaguette null;
  28.     #[ORM\Column(length255)]
  29.     private ?string $defaultBigBaguette null;
  30.     #[ORM\Column(length255)]
  31.     private ?string $defaultCaisseAmericaine null;
  32.     #[ORM\Column]
  33.     private ?float $printPrice null;
  34.     #[ORM\Column]
  35.     private ?bool $hasProEnabledByDefault null;
  36.     #[ORM\Column]
  37.     private ?bool $hasValidateAfterLoadSave null;
  38.     #[ORM\Column]
  39.     private ?bool $hasClientInfo null;
  40.     #[ORM\Column]
  41.     private ?bool $hasSendMail null;
  42.     #[ORM\Column(length255nullabletrue)]
  43.     private ?string $logoPath null;
  44.     #[ORM\Column(length255nullabletrue)]
  45.     private ?string $mainColor null;
  46.     #[ORM\Column]
  47.     private ?bool $hasTunnelPassepartout null;
  48.     #[ORM\Column]
  49.     private ?bool $hasTunnelCaisseAmericaine null;
  50.     #[ORM\Column]
  51.     private ?bool $hasContinueWithExample null;
  52.     #[ORM\Column]
  53.     private ?bool $hasSendEmailToClient null;
  54.     #[ORM\Column]
  55.     private ?bool $hasSellerName null;
  56.     #[ORM\Column(nullabletrue)]
  57.     private ?bool $hasUploadImage null;
  58.     #[ORM\Column(length255)]
  59.     private ?string $sendOrderTo null;
  60.     #[ORM\Column(length255nullabletrue)]
  61.     private ?string $dataProduitPath null;
  62.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  63.     private ?string $defaultComment null;
  64.     #[ORM\Column(typeTypes::JSON)]
  65.     private array $clientOrderMandatoryFields = [];
  66.     #[ORM\Column(nullabletrue)]
  67.     private ?bool $ableSelectProductVariant null;
  68.     #[ORM\Column(nullabletrue)]
  69.     private ?bool $ableToPrint null;
  70.     #[ORM\Column(nullabletrue)]
  71.     private ?bool $hasAutomaticSendToNielsen null;
  72.     #[ORM\Column(nullabletrue)]
  73.     private ?bool $hasNewDesign null;
  74.     #[ORM\Column(nullabletrue)]
  75.     private ?bool $hasLoyaltyCard null;
  76.     #[ORM\Column(nullabletrue)]
  77.     private ?bool $showOrderButton null;
  78.     #[ORM\Column(nullabletrue)]
  79.     private ?bool $canEditNielsenOrderReference null;
  80.     #[ORM\Column(nullabletrue)]
  81.     private ?bool $ableToEditClientOrder null;
  82.     #[ORM\Column(nullabletrue)]
  83.     private ?bool $ableToResendNielsenOrder null;
  84.     public function __construct()
  85.     {
  86.         $this->wording = [
  87.             'step1_csm_title' => 'Encadrer une photo',
  88.             'stepdim_pp_title_ext' => 'Dimensions extérieures',
  89.             'stepdim_pp_title_int' => 'Dimensions intérieures (taille de la photo)',
  90.             'step1_pp_title' => 'Créer un passe-partout seul',
  91.             'step1_ca_title' => 'Encadrer une toile ou un sujet rigide',
  92.             'laststep_substep_subject_title' => 'Dimensions de la photo',
  93.             'laststep_substep_glass_invisible_name' => 'Verre anti-reflet',
  94.         ];
  95.         $this->mainColor '#e02b20';
  96.         $this->defaultBaguette 'WC16003';
  97.         $this->defaultBigBaguette 'WC16203';
  98.         $this->defaultCaisseAmericaine 'WA93516';
  99.         $this->printPrice 128;
  100.         $this->hasTunnelPassepartout true;
  101.         $this->hasTunnelCaisseAmericaine true;
  102.         $this->hasContinueWithExample true;
  103.         $this->hasComment false;
  104.         $this->hasTinyUrlComment false;
  105.         $this->hasInfoPopup false;
  106.         $this->hasDPI false;
  107.         $this->hasProEnabledByDefault false;
  108.         $this->hasValidateAfterLoadSave true;
  109.         $this->hasClientInfo false;
  110.         $this->hasSendMail true;
  111.         $this->hasSendEmailToClient false;
  112.         $this->hasSellerName true;
  113.         $this->showOrderButton true;
  114.         $this->sendOrderTo "plateform";
  115.     }
  116.     public function getId(): ?int
  117.     {
  118.         return $this->id;
  119.     }
  120.     public function getProject(): ?Project
  121.     {
  122.         return $this->project;
  123.     }
  124.     public function setProject(Project $project): static
  125.     {
  126.         $this->project $project;
  127.         return $this;
  128.     }
  129.     public function getWording(): array
  130.     {
  131.         return $this->wording;
  132.     }
  133.     public function setWording(array $wording): static
  134.     {
  135.         $this->wording $wording;
  136.         return $this;
  137.     }
  138.     public function isHasComment(): ?bool
  139.     {
  140.         return $this->hasComment;
  141.     }
  142.     public function setHasComment(bool $hasComment): static
  143.     {
  144.         $this->hasComment $hasComment;
  145.         return $this;
  146.     }
  147.     public function isHasInfoPopup(): ?bool
  148.     {
  149.         return $this->hasInfoPopup;
  150.     }
  151.     public function setHasInfoPopup(bool $hasInfoPopup): static
  152.     {
  153.         $this->hasInfoPopup $hasInfoPopup;
  154.         return $this;
  155.     }
  156.     public function isHasDPI(): ?bool
  157.     {
  158.         return $this->hasDPI;
  159.     }
  160.     public function setHasDPI(bool $hasDPI): static
  161.     {
  162.         $this->hasDPI $hasDPI;
  163.         return $this;
  164.     }
  165.     public function getDefaultBaguette(): ?string
  166.     {
  167.         return $this->defaultBaguette;
  168.     }
  169.     public function setDefaultBaguette(string $defaultBaguette): static
  170.     {
  171.         $this->defaultBaguette $defaultBaguette;
  172.         return $this;
  173.     }
  174.     public function getDefaultBigBaguette(): ?string
  175.     {
  176.         return $this->defaultBigBaguette;
  177.     }
  178.     public function setDefaultBigBaguette(string $defaultBigBaguette): static
  179.     {
  180.         $this->defaultBigBaguette $defaultBigBaguette;
  181.         return $this;
  182.     }
  183.     public function getPrintPrice(): ?float
  184.     {
  185.         return $this->printPrice;
  186.     }
  187.     public function setPrintPrice(float $printPrice): static
  188.     {
  189.         $this->printPrice $printPrice;
  190.         return $this;
  191.     }
  192.     public function isHasProEnabledByDefault(): ?bool
  193.     {
  194.         return $this->hasProEnabledByDefault;
  195.     }
  196.     public function setHasProEnabledByDefault(bool $hasProEnabledByDefault): static
  197.     {
  198.         $this->hasProEnabledByDefault $hasProEnabledByDefault;
  199.         return $this;
  200.     }
  201.     public function isHasValidateAfterLoadSave(): ?bool
  202.     {
  203.         return $this->hasValidateAfterLoadSave;
  204.     }
  205.     public function setHasValidateAfterLoadSave(bool $hasValidateAfterLoadSave): static
  206.     {
  207.         $this->hasValidateAfterLoadSave $hasValidateAfterLoadSave;
  208.         return $this;
  209.     }
  210.     public function isHasClientInfo(): ?bool
  211.     {
  212.         return $this->hasClientInfo;
  213.     }
  214.     public function setHasClientInfo(bool $hasClientInfo): static
  215.     {
  216.         $this->hasClientInfo $hasClientInfo;
  217.         return $this;
  218.     }
  219.     public function isHasSendMail(): ?bool
  220.     {
  221.         return $this->hasSendMail;
  222.     }
  223.     public function setHasSendMail(bool $hasSendMail): static
  224.     {
  225.         $this->hasSendMail $hasSendMail;
  226.         return $this;
  227.     }
  228.     public function getLogoPath(): ?string
  229.     {
  230.         return $this->logoPath;
  231.     }
  232.     public function setLogoPath(?string $logoPath): static
  233.     {
  234.         $this->logoPath $logoPath;
  235.         return $this;
  236.     }
  237.     public function getMainColor(): ?string
  238.     {
  239.         return $this->mainColor;
  240.     }
  241.     public function setMainColor(?string $mainColor): static
  242.     {
  243.         $this->mainColor $mainColor;
  244.         return $this;
  245.     }
  246.     public function isHasTunnelPassepartout(): ?bool
  247.     {
  248.         return $this->hasTunnelPassepartout;
  249.     }
  250.     public function setHasTunnelPassepartout(bool $hasTunnelPassepartout): static
  251.     {
  252.         $this->hasTunnelPassepartout $hasTunnelPassepartout;
  253.         return $this;
  254.     }
  255.     public function isHasContinueWithExample(): ?bool
  256.     {
  257.         return $this->hasContinueWithExample;
  258.     }
  259.     public function setHasContinueWithExample(bool $hasContinueWithExample): static
  260.     {
  261.         $this->hasContinueWithExample $hasContinueWithExample;
  262.         return $this;
  263.     }
  264.     public function getSendOrderTo(): ?string
  265.     {
  266.         return $this->sendOrderTo;
  267.     }
  268.     public function setSendOrderTo(string $sendOrderTo): static
  269.     {
  270.         $this->sendOrderTo $sendOrderTo;
  271.         return $this;
  272.     }
  273.     public function getDataProduitPath(): ?string
  274.     {
  275.         return $this->dataProduitPath;
  276.     }
  277.     public function setDataProduitPath(?string $dataProduitPath): static
  278.     {
  279.         $this->dataProduitPath $dataProduitPath;
  280.         return $this;
  281.     }
  282.     public function getHasTunnelCaisseAmericaine(): ?bool
  283.     {
  284.         return $this->hasTunnelCaisseAmericaine;
  285.     }
  286.     public function setHasTunnelCaisseAmericaine(?bool $hasTunnelCaisseAmericaine): self
  287.     {
  288.         $this->hasTunnelCaisseAmericaine $hasTunnelCaisseAmericaine;
  289.         return $this;
  290.     }
  291.     public function getDefaultCaisseAmericaine(): ?string
  292.     {
  293.         return $this->defaultCaisseAmericaine;
  294.     }
  295.     public function setDefaultCaisseAmericaine(?string $defaultCaisseAmericaine): self
  296.     {
  297.         $this->defaultCaisseAmericaine $defaultCaisseAmericaine;
  298.         return $this;
  299.     }
  300.     public function getHasUploadImage(): ?bool
  301.     {
  302.         return $this->hasUploadImage;
  303.     }
  304.     public function setHasUploadImage(?bool $hasUploadImage): self
  305.     {
  306.         $this->hasUploadImage $hasUploadImage;
  307.         return $this;
  308.     }
  309.     public function getDefaultComment(): ?string
  310.     {
  311.         return $this->defaultComment;
  312.     }
  313.     public function setDefaultComment(?string $defaultComment): static
  314.     {
  315.         $this->defaultComment $defaultComment;
  316.         return $this;
  317.     }
  318.     public function getHasSendEmailToClient(): ?bool
  319.     {
  320.         return $this->hasSendEmailToClient;
  321.     }
  322.     public function setHasSendEmailToClient(?bool $hasSendEmailToClient): self
  323.     {
  324.         $this->hasSendEmailToClient $hasSendEmailToClient;
  325.         return $this;
  326.     }
  327.     public function getClientOrderMandatoryFields(): array
  328.     {
  329.         return $this->clientOrderMandatoryFields;
  330.     }
  331.     public function setClientOrderMandatoryFields(array $clientOrderMandatoryFields): static
  332.     {
  333.         $this->clientOrderMandatoryFields $clientOrderMandatoryFields;
  334.         return $this;
  335.     }
  336.     public function getHasSellerName(): ?bool
  337.     {
  338.         return $this->hasSellerName;
  339.     }
  340.     public function setHasSellerName(?bool $hasSellerName): self
  341.     {
  342.         $this->hasSellerName $hasSellerName;
  343.         return $this;
  344.     }
  345.     public function getHasTinyUrlComment(): ?bool
  346.     {
  347.         return $this->hasTinyUrlComment;
  348.     }
  349.     public function setHasTinyUrlComment(?bool $hasTinyUrlComment): self
  350.     {
  351.         $this->hasTinyUrlComment $hasTinyUrlComment;
  352.         return $this;
  353.     }
  354.     public function isAbleSelectProductVariant(): ?bool
  355.     {
  356.         return $this->ableSelectProductVariant;
  357.     }
  358.     public function setAbleSelectProductVariant(?bool $ableSelectProductVariant): static
  359.     {
  360.         $this->ableSelectProductVariant $ableSelectProductVariant;
  361.         return $this;
  362.     }
  363.     public function isAbleToPrint(): ?bool
  364.     {
  365.         return $this->ableToPrint;
  366.     }
  367.     public function setAbleToPrint(?bool $ableToPrint): static
  368.     {
  369.         $this->ableToPrint $ableToPrint;
  370.         return $this;
  371.     }
  372.     public function isHasAutomaticSendToNielsen(): ?bool
  373.     {
  374.         return $this->hasAutomaticSendToNielsen;
  375.     }
  376.     public function setHasAutomaticSendToNielsen(?bool $hasAutomaticSendToNielsen): static
  377.     {
  378.         $this->hasAutomaticSendToNielsen $hasAutomaticSendToNielsen;
  379.         return $this;
  380.     }
  381.     public function isHasNewDesign(): ?bool
  382.     {
  383.         return $this->hasNewDesign;
  384.     }
  385.     public function setHasNewDesign(?bool $hasNewDesign): static
  386.     {
  387.         $this->hasNewDesign $hasNewDesign;
  388.         return $this;
  389.     }
  390.     public function isHasLoyaltyCard(): ?bool
  391.     {
  392.         return $this->hasLoyaltyCard;
  393.     }
  394.     public function setHasLoyaltyCard(?bool $hasLoyaltyCard): static
  395.     {
  396.         $this->hasLoyaltyCard $hasLoyaltyCard;
  397.         return $this;
  398.     }
  399.     public function isShowOrderButton(): ?bool
  400.     {
  401.         return $this->showOrderButton;
  402.     }
  403.     public function setShowOrderButton(?bool $showOrderButton): static
  404.     {
  405.         $this->showOrderButton $showOrderButton;
  406.         return $this;
  407.     }
  408.     public function isCanEditNielsenOrderReference(): ?bool
  409.     {
  410.         return $this->canEditNielsenOrderReference;
  411.     }
  412.     public function setCanEditNielsenOrderReference(?bool $canEditNielsenOrderReference): static
  413.     {
  414.         $this->canEditNielsenOrderReference $canEditNielsenOrderReference;
  415.         return $this;
  416.     }
  417.     public function isAbleToEditClientOrder(): ?bool
  418.     {
  419.         return $this->ableToEditClientOrder;
  420.     }
  421.     public function setAbleToEditClientOrder(?bool $ableToEditClientOrder): static
  422.     {
  423.         $this->ableToEditClientOrder $ableToEditClientOrder;
  424.         return $this;
  425.     }
  426.     public function isAbleToResendNielsenOrder(): ?bool
  427.     {
  428.         return $this->ableToResendNielsenOrder;
  429.     }
  430.     public function setAbleToResendNielsenOrder(?bool $ableToResendNielsenOrder): static
  431.     {
  432.         $this->ableToResendNielsenOrder $ableToResendNielsenOrder;
  433.         return $this;
  434.     }
  435. }