src/Entity/OAuthClient.php line 37

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 App\Entity;
  11. use FOS\OAuthServerBundle\Entity\Client as BaseClient;
  12. /**
  13.  * OAuthClient
  14.  */
  15. class OAuthClient extends BaseClient implements \JsonSerializable
  16. {
  17.     /**
  18.      * @var string
  19.      */
  20.     private $description;
  21.     
  22.     public function getDescription()
  23.     {
  24.         return $this->description;
  25.     }
  26.     public function setDescription($description)
  27.     {
  28.         $this->description $description;
  29.         return $this;
  30.     }
  31.         
  32.     public function jsonSerialize()
  33.     {
  34.         return [
  35.             'id'           => $this->getId(),
  36.             'description'  => $this->getDescription(),
  37.             'publicId'     => $this->getPublicId(),
  38.             'randomId'     => $this->getRandomId(),
  39.             'redirectUris' => $this->getRedirectUris(),
  40.             'secret'       => $this->getSecret(),
  41.         ];
  42.     }
  43. }