vendor/novosga/core/Entity/ConfiguracaoImpressao.php line 14

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of the Novo SGA project.
  4.  *
  5.  * (c) Rogerio Lino <rogeriolino@gmail.com>
  6.  *
  7.  * For the full copyright and license information, please view the LICENSE
  8.  * file that was distributed with this source code.
  9.  */
  10. namespace Novosga\Entity;
  11. class ConfiguracaoImpressao implements \JsonSerializable
  12. {
  13.     /**
  14.      * @var Unidade
  15.      */
  16.     private $unidade;
  17.     
  18.     /**
  19.      * @var string
  20.      */
  21.     private $cabecalho;
  22.     
  23.     /**
  24.      * @var string
  25.      */
  26.     private $rodape;
  27.     
  28.     /**
  29.      * @var bool
  30.      */
  31.     private $exibirNomeServico;
  32.     
  33.     /**
  34.      * @var bool
  35.      */
  36.     private $exibirNomeUnidade;
  37.     
  38.     /**
  39.      * @var bool
  40.      */
  41.     private $exibirMensagemServico;
  42.     
  43.     /**
  44.      * @var bool
  45.      */
  46.     private $exibirData;
  47.     
  48.     /**
  49.      * @var bool
  50.      */
  51.     private $exibirPrioridade;
  52.     
  53.     public function __construct(Unidade $unidade)
  54.     {
  55.         $this->unidade    $unidade;
  56.         $this->cabecalho  'Novo SGA';
  57.         $this->rodape     'Novo SGA';
  58.         $this->exibirData true;
  59.         $this->exibirMensagemServico true;
  60.         $this->exibirNomeServico     true;
  61.         $this->exibirNomeUnidade     true;
  62.         $this->exibirPrioridade      true;
  63.     }
  64.     
  65.     public function getUnidade()
  66.     {
  67.         return $this->unidade;
  68.     }
  69.     public function getCabecalho()
  70.     {
  71.         return $this->cabecalho;
  72.     }
  73.     public function getRodape()
  74.     {
  75.         return $this->rodape;
  76.     }
  77.     public function getExibirNomeServico()
  78.     {
  79.         return $this->exibirNomeServico;
  80.     }
  81.     public function getExibirNomeUnidade()
  82.     {
  83.         return $this->exibirNomeUnidade;
  84.     }
  85.     public function getExibirMensagemServico()
  86.     {
  87.         return $this->exibirMensagemServico;
  88.     }
  89.     public function getExibirData()
  90.     {
  91.         return $this->exibirData;
  92.     }
  93.     public function getExibirPrioridade()
  94.     {
  95.         return $this->exibirPrioridade;
  96.     }
  97.     public function setUnidade(Unidade $unidade): self
  98.     {
  99.         $this->unidade $unidade;
  100.         return $this;
  101.     }
  102.     public function setCabecalho($cabecalho): self
  103.     {
  104.         $this->cabecalho $cabecalho;
  105.         return $this;
  106.     }
  107.     public function setRodape($rodape): self
  108.     {
  109.         $this->rodape $rodape;
  110.         return $this;
  111.     }
  112.     public function setExibirNomeServico($exibirNomeServico): self
  113.     {
  114.         $this->exibirNomeServico $exibirNomeServico;
  115.         return $this;
  116.     }
  117.     public function setExibirNomeUnidade($exibirNomeUnidade): self
  118.     {
  119.         $this->exibirNomeUnidade $exibirNomeUnidade;
  120.         return $this;
  121.     }
  122.     public function setExibirMensagemServico($exibirMensagemServico): self
  123.     {
  124.         $this->exibirMensagemServico $exibirMensagemServico;
  125.         return $this;
  126.     }
  127.     public function setExibirData($exibirData): self
  128.     {
  129.         $this->exibirData $exibirData;
  130.         return $this;
  131.     }
  132.     public function setExibirPrioridade($exibirPrioridade): self
  133.     {
  134.         $this->exibirPrioridade $exibirPrioridade;
  135.         
  136.         return $this;
  137.     }
  138.     public function jsonSerialize()
  139.     {
  140.         return [
  141.             'cabecalho'             => $this->getCabecalho(),
  142.             'rodape'                => $this->getRodape(),
  143.             'exibirData'            => $this->getExibirData(),
  144.             'exibirPrioridade'      => $this->getExibirPrioridade(),
  145.             'exibirNomeUnidade'     => $this->getExibirNomeUnidade(),
  146.             'exibirNomeServico'     => $this->getExibirNomeServico(),
  147.             'exibirMensagemServico' => $this->getExibirMensagemServico(),
  148.         ];
  149.     }
  150. }