PHP Class Psecio\Jwt\Claim

Afficher le fichier Open project: psecio/jwt

Protected Properties

Свойство Type Description
$name string Claim "name" (ex. audience or issuer)
$type string Claim type
$value string Claim value

Méthodes publiques

Méthode Description
__construct ( string $value, string $type = null ) Initialize the claim with the given value
getName ( ) : string Get the name value for the current instance
getType ( ) : string Get the current claim type
getValue ( ) : string Get the current value
setValue ( string $value ) : Claim Set the claim value
toArray ( ) : array Transform claim data into an array

Method Details

__construct() public méthode

Initialize the claim with the given value
public __construct ( string $value, string $type = null )
$value string Claim value
$type string Type value [optional]

getName() public méthode

Get the name value for the current instance
public getName ( ) : string
Résultat string Name value

getType() public méthode

Get the current claim type
public getType ( ) : string
Résultat string Claim type

getValue() public méthode

Get the current value
public getValue ( ) : string
Résultat string Claim value

setValue() public méthode

Set the claim value
public setValue ( string $value ) : Claim
$value string Claim value
Résultat Claim instance

toArray() public méthode

Transform claim data into an array
public toArray ( ) : array
Résultat array Claim data

Property Details

$name protected_oe property

Claim "name" (ex. audience or issuer)
protected string $name
Résultat string

$type protected_oe property

Claim type
protected string $type
Résultat string

$value protected_oe property

Claim value
protected string $value
Résultat string