vendor/novosga/core/Entity/PainelSenha.php line 213

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. /**
  12.   * Senha enviada ao painel
  13.   *
  14.   * @author Rogerio Lino <rogeriolino@gmail.com>
  15.   */
  16. class PainelSenha implements \JsonSerializable
  17. {
  18.     /**
  19.      * @var mixed
  20.      */
  21.     protected $id;
  22.     
  23.     /**
  24.      * @var Servico
  25.      */
  26.     private $servico;
  27.     /**
  28.      * @var Unidade
  29.      */
  30.     private $unidade;
  31.     /**
  32.      * @var int
  33.      */
  34.     private $numeroSenha;
  35.     /**
  36.      * @var string
  37.      */
  38.     private $siglaSenha;
  39.     /**
  40.      * @var string
  41.      */
  42.     private $mensagem;
  43.     /**
  44.      * @var string
  45.      */
  46.     private $local;
  47.     /**
  48.      * @var int
  49.      */
  50.     private $numeroLocal;
  51.     /**
  52.      * @var int
  53.      */
  54.     private $peso;
  55.     /**
  56.      * @var string
  57.      */
  58.     private $prioridade;
  59.     /**
  60.      * @var string
  61.      */
  62.     private $nomeCliente;
  63.     /**
  64.      * @var string
  65.      */
  66.     private $documentoCliente;
  67.     public function getServico()
  68.     {
  69.         return $this->servico;
  70.     }
  71.     public function setServico($servico): self
  72.     {
  73.         $this->servico $servico;
  74.         return $this;
  75.     }
  76.     public function getUnidade()
  77.     {
  78.         return $this->unidade;
  79.     }
  80.     public function setUnidade($unidade): self
  81.     {
  82.         $this->unidade $unidade;
  83.         return $this;
  84.     }
  85.     public function getNumeroSenha()
  86.     {
  87.         return $this->numeroSenha;
  88.     }
  89.     public function setNumeroSenha($numeroSenha): self
  90.     {
  91.         $this->numeroSenha $numeroSenha;
  92.         return $this;
  93.     }
  94.     public function getSiglaSenha()
  95.     {
  96.         return $this->siglaSenha;
  97.     }
  98.     public function setSiglaSenha($siglaSenha): self
  99.     {
  100.         $this->siglaSenha $siglaSenha;
  101.         return $this;
  102.     }
  103.     public function getMensagem()
  104.     {
  105.         return $this->mensagem;
  106.     }
  107.     public function setMensagem($mensagem): self
  108.     {
  109.         $this->mensagem $mensagem;
  110.         return $this;
  111.     }
  112.     public function getLocal()
  113.     {
  114.         return $this->local;
  115.     }
  116.     public function setLocal($local): self
  117.     {
  118.         $this->local $local;
  119.         return $this;
  120.     }
  121.     public function getNumeroLocal()
  122.     {
  123.         return $this->numeroLocal;
  124.     }
  125.     public function setNumeroLocal($numeroLocal): self
  126.     {
  127.         $this->numeroLocal $numeroLocal;
  128.         return $this;
  129.     }
  130.     public function getPeso()
  131.     {
  132.         return $this->peso;
  133.     }
  134.     public function setPeso($peso): self
  135.     {
  136.         $this->peso $peso;
  137.         return $this;
  138.     }
  139.     public function getPrioridade()
  140.     {
  141.         return $this->prioridade;
  142.     }
  143.     public function getNomeCliente()
  144.     {
  145.         return $this->nomeCliente;
  146.     }
  147.     public function getDocumentoCliente()
  148.     {
  149.         return $this->documentoCliente;
  150.     }
  151.     public function setPrioridade($prioridade): self
  152.     {
  153.         $this->prioridade $prioridade;
  154.         return $this;
  155.     }
  156.     public function setNomeCliente($nomeCliente): self
  157.     {
  158.         $this->nomeCliente $nomeCliente;
  159.         return $this;
  160.     }
  161.     public function setDocumentoCliente($documentoCliente): self
  162.     {
  163.         $this->documentoCliente $documentoCliente;
  164.         return $this;
  165.     }
  166.     public function jsonSerialize()
  167.     {
  168.         return [
  169.            'id'               => $this->getId(),
  170.            'senha'            => $this->getSiglaSenha().str_pad($this->getNumeroSenha(), 3'0'STR_PAD_LEFT),
  171.            'local'            => $this->getLocal(),
  172.            'numeroLocal'      => $this->getNumeroLocal(),
  173.            'peso'             => $this->getPeso(),
  174.            'prioridade'       => $this->getPrioridade(),
  175.            'nomeCliente'      => $this->getNomeCliente(),
  176.            'documentoCliente' => $this->getDocumentoCliente(),
  177.         ];
  178.     }
  179. }