Метод |
Описание |
|
__construct ( string $key, string $algorithm = 'HS256', string $type = 'JWT' ) |
Intitialize the Header |
|
__toString ( ) : string |
Convert the object to a JSON string |
|
getAlgorithm ( boolean $resolve = false ) : string |
Get the current algorithm setting
If "resolve" is set to true, it finds the value from the types array
and returns that |
|
getKey ( ) : string |
Get the currently set key |
|
getType ( ) : string |
Return the current type |
|
setAlgorithm ( string $algorithm ) : Header |
Set the algorithm type |
|
setKey ( string $key ) : Header |
Set the current object's key value |
|
setType ( string $type ) : Header |
Set the header type |
|
toArray ( ) : array |
Convert the object into an array of data |
|