vendor/novosga/core/Entity/PainelServico.php line 72

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.   * PainelServico
  13.   *
  14.   * @author Rogerio Lino <rogeriolino@gmail.com>
  15.   */
  16. class PainelServico implements \JsonSerializable
  17. {
  18.     /**
  19.      * @var Painel
  20.      */
  21.     private $painel;
  22.     /**
  23.      * @var Servico
  24.      */
  25.     private $servico;
  26.     /**
  27.      * @var Unidade
  28.      */
  29.     private $unidade;
  30.     public function getPainel()
  31.     {
  32.         return $this->painel;
  33.     }
  34.     public function setPainel($painel): self
  35.     {
  36.         $this->painel $painel;
  37.         return $this;
  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.     public function jsonSerialize()
  58.     {
  59.         return [
  60.            'painel'  => $this->getPainel(),
  61.            'servico' => $this->getServico(),
  62.            'unidade' => $this->getUnidade(),
  63.         ];
  64.     }
  65. }