vendor/sulu/sulu/src/Sulu/Bundle/SecurityBundle/Entity/RoleSetting.php line 20

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of Sulu.
  4.  *
  5.  * (c) Sulu GmbH
  6.  *
  7.  * This source file is subject to the MIT license that is bundled
  8.  * with this source code in the file LICENSE.
  9.  */
  10. namespace Sulu\Bundle\SecurityBundle\Entity;
  11. use Sulu\Component\Security\Authentication\RoleInterface;
  12. use Sulu\Component\Security\Authentication\RoleSettingInterface;
  13. /**
  14.  * RoleSetting.
  15.  */
  16. class RoleSetting implements RoleSettingInterface
  17. {
  18.     /**
  19.      * @var int
  20.      */
  21.     private $id;
  22.     /**
  23.      * @var string
  24.      */
  25.     private $key;
  26.     /**
  27.      * @var array
  28.      */
  29.     private $value;
  30.     /**
  31.      * @var RoleInterface
  32.      */
  33.     private $role;
  34.     public function getId()
  35.     {
  36.         return $this->id;
  37.     }
  38.     public function setKey($key)
  39.     {
  40.         $this->key $key;
  41.         return $this;
  42.     }
  43.     public function getKey()
  44.     {
  45.         return $this->key;
  46.     }
  47.     public function setValue($value)
  48.     {
  49.         $this->value $value;
  50.         return $this;
  51.     }
  52.     public function getValue()
  53.     {
  54.         return $this->value;
  55.     }
  56.     public function setRole(RoleInterface $role null)
  57.     {
  58.         $this->role $role;
  59.         return $this;
  60.     }
  61.     public function getRole()
  62.     {
  63.         return $this->role;
  64.     }
  65. }