| 1 | <?php |
||
| 14 | class AuthenticationValue |
||
| 15 | { |
||
| 16 | const TYPE_TEXT = 'text'; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var string |
||
| 20 | */ |
||
| 21 | private $key; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var string |
||
| 25 | */ |
||
| 26 | private $value; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var string |
||
| 30 | */ |
||
| 31 | private $type = self::TYPE_TEXT; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @var string |
||
| 35 | */ |
||
| 36 | private $name; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @var bool |
||
| 40 | */ |
||
| 41 | private $enabled = true; |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @return string |
||
| 45 | */ |
||
| 46 | public function getKey() |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @param string $key |
||
| 53 | */ |
||
| 54 | public function setKey($key) |
||
| 58 | |||
| 59 | /** |
||
| 60 | * @return string |
||
| 61 | */ |
||
| 62 | public function getValue() |
||
| 66 | |||
| 67 | /** |
||
| 68 | * @param string $value |
||
| 69 | */ |
||
| 70 | public function setValue($value) |
||
| 74 | |||
| 75 | /** |
||
| 76 | * @return string |
||
| 77 | */ |
||
| 78 | public function getType() |
||
| 82 | |||
| 83 | /** |
||
| 84 | * @param string $type |
||
| 85 | */ |
||
| 86 | public function setType($type) |
||
| 90 | |||
| 91 | /** |
||
| 92 | * @return string |
||
| 93 | */ |
||
| 94 | public function getName() |
||
| 98 | |||
| 99 | /** |
||
| 100 | * @param string $name |
||
| 101 | */ |
||
| 102 | public function setName($name) |
||
| 106 | |||
| 107 | /** |
||
| 108 | * @return bool |
||
| 109 | */ |
||
| 110 | public function isEnabled() |
||
| 114 | |||
| 115 | /** |
||
| 116 | * @param bool $enabled |
||
| 117 | */ |
||
| 118 | public function setEnabled($enabled) |
||
| 122 | } |
||
| 123 |