vendor/novosga/core/Entity/Contador.php line 19

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.  * Ticket counter.
  13.  *
  14.  * @author Rogerio Lino <rogeriolino@gmail.com>
  15.  */
  16. class Contador implements \JsonSerializable
  17. {
  18.     /**
  19.      * @var Unidade
  20.      */
  21.     private $unidade;
  22.     /**
  23.      * @var Servico
  24.      */
  25.     private $servico;
  26.     /**
  27.      * @var int
  28.      */
  29.     private $numero;
  30.     /**
  31.      * Get the value of Unidade
  32.      *
  33.      * @return Unidade
  34.      */
  35.     public function getUnidade()
  36.     {
  37.         return $this->unidade;
  38.     }
  39.     /**
  40.      * Set the value of Unidade
  41.      *
  42.      * @param Unidade unidade
  43.      *
  44.      * @return self
  45.      */
  46.     public function setUnidade(Unidade $unidade): self
  47.     {
  48.         $this->unidade $unidade;
  49.         return $this;
  50.     }
  51.     /**
  52.      * Get the value of Servico
  53.      *
  54.      * @return Servico
  55.      */
  56.     public function getServico()
  57.     {
  58.         return $this->servico;
  59.     }
  60.     /**
  61.      * Set the value of Servico
  62.      *
  63.      * @param Servico servico
  64.      *
  65.      * @return self
  66.      */
  67.     public function setServico(Servico $servico): self
  68.     {
  69.         $this->servico $servico;
  70.         return $this;
  71.     }
  72.     /**
  73.      * Get the value of Atual
  74.      *
  75.      * @return int
  76.      */
  77.     public function getNumero()
  78.     {
  79.         return $this->numero;
  80.     }
  81.     /**
  82.      * Set the value of Atual
  83.      *
  84.      * @param int atual
  85.      *
  86.      * @return self
  87.      */
  88.     public function setNumero($numero): self
  89.     {
  90.         $this->numero $numero;
  91.         return $this;
  92.     }
  93.     public function jsonSerialize()
  94.     {
  95.         return [
  96.             'numero'  => $this->getNumero(),
  97.             'servico' => $this->getServico()
  98.         ];
  99.     }
  100. }