PHP Класс Psecio\Jwt\Claim

Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$name string Claim "name" (ex. audience or issuer)
$type string Claim type
$value string Claim value

Открытые методы

Метод Описание
__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

Описание методов

__construct() публичный Метод

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

getName() публичный Метод

Get the name value for the current instance
public getName ( ) : string
Результат string Name value

getType() публичный Метод

Get the current claim type
public getType ( ) : string
Результат string Claim type

getValue() публичный Метод

Get the current value
public getValue ( ) : string
Результат string Claim value

setValue() публичный Метод

Set the claim value
public setValue ( string $value ) : Claim
$value string Claim value
Результат Claim instance

toArray() публичный Метод

Transform claim data into an array
public toArray ( ) : array
Результат array Claim data

Описание свойств

$name защищенное свойство

Claim "name" (ex. audience or issuer)
protected string $name
Результат string

$type защищенное свойство

Claim type
protected string $type
Результат string

$value защищенное свойство

Claim value
protected string $value
Результат string