| 1 | <?php |
||
| 7 | class Token |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var string |
||
| 11 | */ |
||
| 12 | private $value; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Create a new JSON Web Token |
||
| 16 | * |
||
| 17 | * @param string $value |
||
| 18 | */ |
||
| 19 | 51 | public function __construct($value) |
|
| 25 | |||
| 26 | /** |
||
| 27 | * Get the token |
||
| 28 | * |
||
| 29 | * @return string |
||
| 30 | */ |
||
| 31 | 15 | public function get() |
|
| 35 | |||
| 36 | /** |
||
| 37 | * Get the token when casting to string |
||
| 38 | * |
||
| 39 | * @return string |
||
| 40 | */ |
||
| 41 | 21 | public function __toString() |
|
| 45 | } |
||
| 46 |