vendor/novosga/core/Entity/ServicoUsuario.php line 97

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.  * Servico Usuario
  13.  * Configuração do serviço que o usuário atende
  14.  *
  15.  * @author Rogerio Lino <rogeriolino@gmail.com>
  16.  */
  17. class ServicoUsuario implements \JsonSerializable
  18. {
  19.     /**
  20.      * @var Servico
  21.      */
  22.     private $servico;
  23.     /**
  24.      * @var Unidade
  25.      */
  26.     private $unidade;
  27.     /**
  28.      * @var Usuario
  29.      */
  30.     private $usuario;
  31.     /**
  32.      * @var int
  33.      */
  34.     private $peso;
  35.     public function __construct()
  36.     {
  37.     }
  38.     
  39.     public function getServico()
  40.     {
  41.         return $this->servico;
  42.     }
  43.     public function setServico($servico): self
  44.     {
  45.         $this->servico $servico;
  46.         return $this;
  47.     }
  48.     public function getUnidade()
  49.     {
  50.         return $this->unidade;
  51.     }
  52.     public function setUnidade($unidade): self
  53.     {
  54.         $this->unidade $unidade;
  55.         return $this;
  56.     }
  57.     /**
  58.      * @return Usuario
  59.      */
  60.     public function getUsuario()
  61.     {
  62.         return $this->usuario;
  63.     }
  64.     public function setUsuario($usuario): self
  65.     {
  66.         $this->usuario $usuario;
  67.         return $this;
  68.     }
  69.     
  70.     public function getPeso()
  71.     {
  72.         return $this->peso;
  73.     }
  74.     public function setPeso($peso): self
  75.     {
  76.         $this->peso $peso;
  77.         
  78.         return $this;
  79.     }
  80.     
  81.     public function jsonSerialize()
  82.     {
  83.         return [
  84.             'peso'    => $this->getPeso(),
  85.             'servico' => $this->getServico(),
  86.         ];
  87.     }
  88. }