src/Entity/DocumentSettings.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * DocumentSettings
  6.  *
  7.  * @ORM\Table(name="document_settings")
  8.  * @ORM\Entity(repositoryClass="App\Repository\DocumentSettingsRepository")
  9.  */
  10. class DocumentSettings
  11. {
  12.     /**
  13.      * @var \Ramsey\Uuid\UuidInterface
  14.      *
  15.      * @ORM\Id
  16.      *  @ORM\Column(type="uuid", unique=true)
  17.      * @ORM\GeneratedValue(strategy="CUSTOM")
  18.      * @ORM\CustomIdGenerator(class="Ramsey\Uuid\Doctrine\UuidGenerator")
  19.      */
  20.     private $id;
  21.     /**
  22.      * @var int
  23.      *
  24.      * @ORM\Column(name="template", type="integer", nullable=true)
  25.      */
  26.     private $template;
  27.     /**
  28.      * @var int
  29.      *
  30.      * @ORM\Column(name="tipo", type="integer", nullable=true)
  31.      */
  32.     private $tipo;
  33.     /**
  34.      * @var int
  35.      *
  36.      * @ORM\Column(name="modelo", type="integer", nullable=true)
  37.      */
  38.     private $modelo;
  39.     /**
  40.      * @var bool
  41.      *
  42.      * @ORM\Column(name="header_logotipo", type="boolean", nullable=true)
  43.      */
  44.     private $headerLogotipo;
  45.     /**
  46.      * @var bool
  47.      *
  48.      * @ORM\Column(name="header_company_name", type="boolean", nullable=true)
  49.      */
  50.     private $headerCompanyName;
  51.     /**
  52.      * @var bool
  53.      *
  54.      * @ORM\Column(name="header_company_telephone", type="boolean", nullable=true)
  55.      */
  56.     private $headerCompanyTelephone;
  57.     /**
  58.      * @var bool
  59.      *
  60.      * @ORM\Column(name="header_company_fax", type="boolean", nullable=true)
  61.      */
  62.     private $headerCompanyFax;
  63.     /**
  64.      * @var bool
  65.      *
  66.      * @ORM\Column(name="header_company_email",type="boolean", nullable=true)
  67.      */
  68.     private $headerCompanyEmail;
  69.     /**
  70.      * @var bool
  71.      *
  72.      * @ORM\Column(name="header_company_social_capital", type="boolean", nullable=true)
  73.      */
  74.     private $headerCompanySocialCapital;
  75.     /**
  76.      * @var int
  77.      *
  78.      * @ORM\Column(name="header_company_nif", type="boolean", nullable=true)
  79.      */
  80.     private $headerCompanyNif;
  81.     /**
  82.      * @var bool
  83.      *
  84.      * @ORM\Column(name="header_company_slogan", type="boolean", nullable=true)
  85.      */
  86.     private $headerCompanySlogan;
  87.     /**
  88.      * @var bool
  89.      *
  90.      * @ORM\Column(name="header_client_telephone", type="boolean", nullable=true)
  91.      */
  92.     private $headerClientTelephone;
  93.     /**
  94.      * @var bool
  95.      *
  96.      * @ORM\Column(name="header_client_email", type="boolean", nullable=true)
  97.      */
  98.     private $headerClientEmail;
  99.     /**
  100.      * @return bool
  101.      */
  102.     public function isPaymentMethods()
  103.     {
  104.         return $this->paymentMethods;
  105.     }
  106.     /**
  107.      * @param bool $paymentMethods
  108.      */
  109.     public function setPaymentMethods(bool $paymentMethods)
  110.     {
  111.         $this->paymentMethods $paymentMethods;
  112.     }
  113.     /**
  114.      * @var bool
  115.      *
  116.      * @ORM\Column(name="header_client_address", type="boolean", nullable=true)
  117.      */
  118.     private $headerClientAddress;
  119.     /**
  120.      * @var bool
  121.      *
  122.      * @ORM\Column(name="header_client_number", type="boolean", nullable=true)
  123.      */
  124.     private $headerClientNumber;
  125.     /**
  126.      * @var bool
  127.      *
  128.      * @ORM\Column(name="header_invoice_due_date", type="boolean", nullable=true)
  129.      */
  130.     private $headerInvoiceDueDate;
  131.     /**
  132.      * @var bool
  133.      *
  134.      * @ORM\Column(name="header_invoice_doc_date", type="boolean", nullable=true)
  135.      */
  136.     private $headerInvoiceDocDate;
  137.     /**
  138.      * @var bool
  139.      *
  140.      * @ORM\Column(name="body_article_code", type="boolean", nullable=true)
  141.      */
  142.     private $bodyArticleCode;
  143.     /**
  144.      * @var bool
  145.      *
  146.      * @ORM\Column(name="body_article_iva", type="boolean", nullable=true)
  147.      */
  148.     private $bodyArticleIva;
  149.     /**
  150.      * @var bool
  151.      *
  152.      * @ORM\Column(name="body_article_discount", type="boolean", nullable=true)
  153.      */
  154.     private $bodyArticleDiscount;
  155.     /**
  156.      * @var bool
  157.      *
  158.      * @ORM\Column(name="body_article_discount_percent", type="boolean", nullable=true)
  159.      */
  160.     private $bodyArticleDiscountPercent=false;
  161.     /**
  162.      * @var bool
  163.      *
  164.      * @ORM\Column(name="body_article_description", type="boolean", nullable=true)
  165.      */
  166.     private $bodyArticleDescription;
  167.     /**
  168.      * @var bool
  169.      *
  170.      * @ORM\Column(name="body_article_type", type="boolean", nullable=true)
  171.      */
  172.     private $bodyArticleType;
  173.     /**
  174.      * @var bool
  175.      *
  176.      * @ORM\Column(name="footer_obs", type="boolean", nullable=true)
  177.      */
  178.     private $footerObs;
  179.     /**
  180.      * @var bool
  181.      *
  182.      * @ORM\Column(name="footer_qr", type="boolean", nullable=true)
  183.      */
  184.     private $footerQr;
  185.     /**
  186.      * @var bool
  187.      *
  188.      * @ORM\Column(name="footer_comment", type="boolean", nullable=true)
  189.      */
  190.     private $footerComment;
  191.     /**
  192.      * @var bool
  193.      *
  194.      * @ORM\Column(name="footer_alternative_curency", type="boolean", nullable=true)
  195.      */
  196.     private $footerAlternativeCurency;
  197.     /**
  198.      * @var bool
  199.      *
  200.      * @ORM\Column(name="footer_full_amount", type="boolean", nullable=true)
  201.      */
  202.     private $footerFullAmount;
  203.     /**
  204.      * @var bool
  205.      *
  206.      * @ORM\Column(name="footer_payment_method", type="boolean", nullable=true)
  207.      */
  208.     private $paymentMethods;
  209.     /**
  210.      * @var bool
  211.      *
  212.      * @ORM\Column(name="footer_warranty_conditions", type="boolean", nullable=true)
  213.      */
  214.     private $warrantyConditions;
  215.     /**
  216.      * @var string
  217.      *
  218.      * @ORM\Column(name="default_color", type="string", length=255, nullable=true)
  219.      */
  220.     private $defaultColor;
  221.     /**
  222.      * Get id
  223.      *
  224.      * @return \Ramsey\Uuid\UuidInterface
  225.      */
  226.     public function getId()
  227.     {
  228.         return $this->id;
  229.     }
  230.     /**
  231.      * Set tipo
  232.      *
  233.      * @param integer $tipo
  234.      *
  235.      * @return DocumentSettings
  236.      */
  237.     public function setTipo($tipo)
  238.     {
  239.         $this->tipo $tipo;
  240.         return $this;
  241.     }
  242.     /**
  243.      * Get tipo
  244.      *
  245.      * @return int
  246.      */
  247.     public function getTipo()
  248.     {
  249.         return $this->tipo;
  250.     }
  251.     /**
  252.      * Set modelo
  253.      *
  254.      * @param integer $modelo
  255.      *
  256.      * @return DocumentSettings
  257.      */
  258.     public function setModelo($modelo)
  259.     {
  260.         $this->modelo $modelo;
  261.         return $this;
  262.     }
  263.     /**
  264.      * Get modelo
  265.      *
  266.      * @return int
  267.      */
  268.     public function getModelo()
  269.     {
  270.         return $this->modelo;
  271.     }
  272.     /**
  273.      * Set headerLogotipo
  274.      *
  275.      * @param integer $headerLogotipo
  276.      *
  277.      * @return DocumentSettings
  278.      */
  279.     public function setHeaderLogotipo($headerLogotipo)
  280.     {
  281.         $this->headerLogotipo $headerLogotipo;
  282.         return $this;
  283.     }
  284.     /**
  285.      * Get headerLogotipo
  286.      *
  287.      * @return int
  288.      */
  289.     public function getHeaderLogotipo()
  290.     {
  291.         return $this->headerLogotipo;
  292.     }
  293.     /**
  294.      * Set headerCompanyTelephone
  295.      *
  296.      * @param integer $headerCompanyTelephone
  297.      *
  298.      * @return DocumentSettings
  299.      */
  300.     public function setHeaderCompanyTelephone($headerCompanyTelephone)
  301.     {
  302.         $this->headerCompanyTelephone $headerCompanyTelephone;
  303.         return $this;
  304.     }
  305.     /**
  306.      * Get headerCompanyTelephone
  307.      *
  308.      * @return int
  309.      */
  310.     public function getHeaderCompanyTelephone()
  311.     {
  312.         return $this->headerCompanyTelephone;
  313.     }
  314.     /**
  315.      * Set headerCompanyFax
  316.      *
  317.      * @param integer $headerCompanyFax
  318.      *
  319.      * @return DocumentSettings
  320.      */
  321.     public function setHeaderCompanyFax($headerCompanyFax)
  322.     {
  323.         $this->headerCompanyFax $headerCompanyFax;
  324.         return $this;
  325.     }
  326.     /**
  327.      * Get headerCompanyFax
  328.      *
  329.      * @return int
  330.      */
  331.     public function getHeaderCompanyFax()
  332.     {
  333.         return $this->headerCompanyFax;
  334.     }
  335.     /**
  336.      * Set headerCompanyEmail
  337.      *
  338.      * @param integer $headerCompanyEmail
  339.      *
  340.      * @return DocumentSettings
  341.      */
  342.     public function setHeaderCompanyEmail($headerCompanyEmail)
  343.     {
  344.         $this->headerCompanyEmail $headerCompanyEmail;
  345.         return $this;
  346.     }
  347.     /**
  348.      * Get headerCompanyEmail
  349.      *
  350.      * @return int
  351.      */
  352.     public function getHeaderCompanyEmail()
  353.     {
  354.         return $this->headerCompanyEmail;
  355.     }
  356.     /**
  357.      * Set headerCompanySocialCapital
  358.      *
  359.      * @param integer $headerCompanySocialCapital
  360.      *
  361.      * @return DocumentSettings
  362.      */
  363.     public function setHeaderCompanySocialCapital($headerCompanySocialCapital)
  364.     {
  365.         $this->headerCompanySocialCapital $headerCompanySocialCapital;
  366.         return $this;
  367.     }
  368.     /**
  369.      * Get headerCompanySocialCapital
  370.      *
  371.      * @return int
  372.      */
  373.     public function getHeaderCompanySocialCapital()
  374.     {
  375.         return $this->headerCompanySocialCapital;
  376.     }
  377.     /**
  378.      * Set headerCompanyNif
  379.      *
  380.      * @param integer $headerCompanyNif
  381.      *
  382.      * @return DocumentSettings
  383.      */
  384.     public function setHeaderCompanyNif($headerCompanyNif)
  385.     {
  386.         $this->headerCompanyNif $headerCompanyNif;
  387.         return $this;
  388.     }
  389.     /**
  390.      * Get headerCompanyNif
  391.      *
  392.      * @return int
  393.      */
  394.     public function getHeaderCompanyNif()
  395.     {
  396.         return $this->headerCompanyNif;
  397.     }
  398.     /**
  399.      * Set headerCompanySlogan
  400.      *
  401.      * @param integer $headerCompanySlogan
  402.      *
  403.      * @return DocumentSettings
  404.      */
  405.     public function setHeaderCompanySlogan($headerCompanySlogan)
  406.     {
  407.         $this->headerCompanySlogan $headerCompanySlogan;
  408.         return $this;
  409.     }
  410.     /**
  411.      * Get headerCompanySlogan
  412.      *
  413.      * @return int
  414.      */
  415.     public function getHeaderCompanySlogan()
  416.     {
  417.         return $this->headerCompanySlogan;
  418.     }
  419.     /**
  420.      * Set headerClientTelephone
  421.      *
  422.      * @param integer $headerClientTelephone
  423.      *
  424.      * @return DocumentSettings
  425.      */
  426.     public function setHeaderClientTelephone($headerClientTelephone)
  427.     {
  428.         $this->headerClientTelephone $headerClientTelephone;
  429.         return $this;
  430.     }
  431.     /**
  432.      * Get headerClientTelephone
  433.      *
  434.      * @return int
  435.      */
  436.     public function getHeaderClientTelephone()
  437.     {
  438.         return $this->headerClientTelephone;
  439.     }
  440.     /**
  441.      * Set headerClientAddress
  442.      *
  443.      * @param integer $headerClientAddress
  444.      *
  445.      * @return DocumentSettings
  446.      */
  447.     public function setHeaderClientAddress($headerClientAddress)
  448.     {
  449.         $this->headerClientAddress $headerClientAddress;
  450.         return $this;
  451.     }
  452.     /**
  453.      * Get headerClientAddress
  454.      *
  455.      * @return int
  456.      */
  457.     public function getHeaderClientAddress()
  458.     {
  459.         return $this->headerClientAddress;
  460.     }
  461.     /**
  462.      * Set headerClientNumber
  463.      *
  464.      * @param integer $headerClientNumber
  465.      *
  466.      * @return DocumentSettings
  467.      */
  468.     public function setHeaderClientNumber($headerClientNumber)
  469.     {
  470.         $this->headerClientNumber $headerClientNumber;
  471.         return $this;
  472.     }
  473.     /**
  474.      * Get headerClientNumber
  475.      *
  476.      * @return int
  477.      */
  478.     public function getHeaderClientNumber()
  479.     {
  480.         return $this->headerClientNumber;
  481.     }
  482.     /**
  483.      * Set headerInvoiceDueDate
  484.      *
  485.      * @param integer $headerInvoiceDueDate
  486.      *
  487.      * @return DocumentSettings
  488.      */
  489.     public function setHeaderInvoiceDueDate($headerInvoiceDueDate)
  490.     {
  491.         $this->headerInvoiceDueDate $headerInvoiceDueDate;
  492.         return $this;
  493.     }
  494.     /**
  495.      * Get headerInvoiceDueDate
  496.      *
  497.      * @return int
  498.      */
  499.     public function getHeaderInvoiceDueDate()
  500.     {
  501.         return $this->headerInvoiceDueDate;
  502.     }
  503.     /**
  504.      * Set headerInvoiceDocDate
  505.      *
  506.      * @param integer $headerInvoiceDocDate
  507.      *
  508.      * @return DocumentSettings
  509.      */
  510.     public function setHeaderInvoiceDocDate($headerInvoiceDocDate)
  511.     {
  512.         $this->headerInvoiceDocDate $headerInvoiceDocDate;
  513.         return $this;
  514.     }
  515.     /**
  516.      * Get headerInvoiceDocDate
  517.      *
  518.      * @return int
  519.      */
  520.     public function getHeaderInvoiceDocDate()
  521.     {
  522.         return $this->headerInvoiceDocDate;
  523.     }
  524.     /**
  525.      * Set bodyArticleCode
  526.      *
  527.      * @param integer $bodyArticleCode
  528.      *
  529.      * @return DocumentSettings
  530.      */
  531.     public function setBodyArticleCode($bodyArticleCode)
  532.     {
  533.         $this->bodyArticleCode $bodyArticleCode;
  534.         return $this;
  535.     }
  536.     /**
  537.      * Get bodyArticleCode
  538.      *
  539.      * @return int
  540.      */
  541.     public function getBodyArticleCode()
  542.     {
  543.         return $this->bodyArticleCode;
  544.     }
  545.     /**
  546.      * Set bodyArticleIva
  547.      *
  548.      * @param  $bodyArticleIva
  549.      *
  550.      * @return DocumentSettings
  551.      */
  552.     public function setBodyArticleIva($bodyArticleIva)
  553.     {
  554.         $this->bodyArticleIva $bodyArticleIva;
  555.         return $this;
  556.     }
  557.     /**
  558.      * Get bodyArticleIva
  559.      *
  560.      * @return bool
  561.      */
  562.     public function getBodyArticleIva()
  563.     {
  564.         return $this->bodyArticleIva;
  565.     }
  566.     /**
  567.      * Set bodyArticleDiscount
  568.      *
  569.      * @param  $bodyArticleDiscount
  570.      *
  571.      * @return DocumentSettings
  572.      */
  573.     public function setBodyArticleDiscount($bodyArticleDiscount)
  574.     {
  575.         $this->bodyArticleDiscount $bodyArticleDiscount;
  576.         return $this;
  577.     }
  578.     /**
  579.      * Get bodyArticleDiscount
  580.      *
  581.      * @return bool
  582.      */
  583.     public function getBodyArticleDiscount()
  584.     {
  585.         return $this->bodyArticleDiscount;
  586.     }
  587.     /**
  588.      * Set bodyArticleDescription
  589.      *
  590.      * @param  $bodyArticleDescription
  591.      *
  592.      * @return DocumentSettings
  593.      */
  594.     public function setBodyArticleDescription($bodyArticleDescription)
  595.     {
  596.         $this->bodyArticleDescription $bodyArticleDescription;
  597.         return $this;
  598.     }
  599.     /**
  600.      * Get bodyArticleDescription
  601.      *
  602.      * @return bool
  603.      */
  604.     public function getBodyArticleDescription()
  605.     {
  606.         return $this->bodyArticleDescription;
  607.     }
  608.     /**
  609.      * Set bodyArticleType
  610.      *
  611.      * @param  $bodyArticleType
  612.      *
  613.      * @return DocumentSettings
  614.      */
  615.     public function setBodyArticleType($bodyArticleType)
  616.     {
  617.         $this->bodyArticleType $bodyArticleType;
  618.         return $this;
  619.     }
  620.     /**
  621.      * Get bodyArticleType
  622.      *
  623.      * @return bool
  624.      */
  625.     public function getBodyArticleType()
  626.     {
  627.         return $this->bodyArticleType;
  628.     }
  629.     /**
  630.      * Set footerObs
  631.      *
  632.      * @param  $footerObs
  633.      *
  634.      * @return DocumentSettings
  635.      */
  636.     public function setFooterObs($footerObs)
  637.     {
  638.         $this->footerObs $footerObs;
  639.         return $this;
  640.     }
  641.     /**
  642.      * Get footerObs
  643.      *
  644.      * @return bool
  645.      */
  646.     public function getFooterObs()
  647.     {
  648.         return $this->footerObs;
  649.     }
  650.     /**
  651.      * Set footerComment
  652.      *
  653.      * @param  $footerComment
  654.      *
  655.      * @return DocumentSettings
  656.      */
  657.     public function setFooterComment($footerComment)
  658.     {
  659.         $this->footerComment $footerComment;
  660.         return $this;
  661.     }
  662.     /**
  663.      * Get footerComment
  664.      *
  665.      * @return bool
  666.      */
  667.     public function getFooterComment()
  668.     {
  669.         return $this->footerComment;
  670.     }
  671.     /**
  672.      * Set footerAlternativeCurency
  673.      *
  674.      * @param  $footerAlternativeCurency
  675.      *
  676.      * @return DocumentSettings
  677.      */
  678.     public function setFooterAlternativeCurency($footerAlternativeCurency)
  679.     {
  680.         $this->footerAlternativeCurency $footerAlternativeCurency;
  681.         return $this;
  682.     }
  683.     /**
  684.      * Get footerAlternativeCurency
  685.      *
  686.      * @return bool
  687.      */
  688.     public function getFooterAlternativeCurency()
  689.     {
  690.         return $this->footerAlternativeCurency;
  691.     }
  692.     /**
  693.      * Set defaultColor
  694.      *
  695.      * @param string $defaultColor
  696.      *
  697.      * @return DocumentSettings
  698.      */
  699.     public function setDefaultColor($defaultColor)
  700.     {
  701.         $this->defaultColor $defaultColor;
  702.         return $this;
  703.     }
  704.     /**
  705.      * Get defaultColor
  706.      *
  707.      * @return string
  708.      */
  709.     public function getDefaultColor()
  710.     {
  711.         return $this->defaultColor;
  712.     }
  713.     /**
  714.      * @return bool
  715.      */
  716.     public function isWarrantyConditions()
  717.     {
  718.         return $this->warrantyConditions;
  719.     }
  720.     /**
  721.      * @param bool $warrantyConditions
  722.      */
  723.     public function setWarrantyConditions($warrantyConditions)
  724.     {
  725.         $this->warrantyConditions $warrantyConditions;
  726.     }
  727.     /**
  728.      * @return bool
  729.      */
  730.     public function isHeaderClientEmail()
  731.     {
  732.         return $this->headerClientEmail;
  733.     }
  734.     /**
  735.      * @param bool $headerClientEmail
  736.      */
  737.     public function setHeaderClientEmail($headerClientEmail)
  738.     {
  739.         $this->headerClientEmail $headerClientEmail;
  740.     }
  741.     /**
  742.      * @return bool
  743.      */
  744.     public function isHeaderCompanyName()
  745.     {
  746.         return $this->headerCompanyName;
  747.     }
  748.     /**
  749.      * @param bool $headerCompanyName
  750.      */
  751.     public function setHeaderCompanyName($headerCompanyName)
  752.     {
  753.         $this->headerCompanyName $headerCompanyName;
  754.     }
  755.     /**
  756.      * @return bool
  757.      */
  758.     public function isFooterQr()
  759.     {
  760.         return $this->footerQr;
  761.     }
  762.     /**
  763.      * @param bool $footerQr
  764.      */
  765.     public function setFooterQr($footerQr)
  766.     {
  767.         $this->footerQr $footerQr;
  768.     }
  769.     /**
  770.      * @return bool
  771.      */
  772.     public function isFooterFullAmount()
  773.     {
  774.         return $this->footerFullAmount;
  775.     }
  776.     /**
  777.      * @param bool $footerFullAmount
  778.      */
  779.     public function setFooterFullAmount($footerFullAmount)
  780.     {
  781.         $this->footerFullAmount $footerFullAmount;
  782.     }
  783.     /**
  784.      * Get the value of template
  785.      */
  786.     public function getTemplate()
  787.     {
  788.         return is_null($this->template) ? $this->template ;
  789.     }
  790.     /**
  791.      * Set the value of template
  792.      */
  793.     public function setTemplate($template)
  794.     {
  795.         $this->template $template;
  796.         return $this;
  797.     }
  798.     /**
  799.      * Get the value of bodyArticleDiscountPercent
  800.      *
  801.      * @return  bool
  802.      */ 
  803.     public function getBodyArticleDiscountPercent()
  804.     {
  805.         return $this->bodyArticleDiscountPercent;
  806.     }
  807.     /**
  808.      * Set the value of bodyArticleDiscountPercent
  809.      *
  810.      * @param  bool  $bodyArticleDiscountPercent
  811.      *
  812.      * @return  self
  813.      */ 
  814.     public function setBodyArticleDiscountPercent(bool $bodyArticleDiscountPercent)
  815.     {
  816.         $this->bodyArticleDiscountPercent $bodyArticleDiscountPercent;
  817.         return $this;
  818.     }
  819. }