PHP 클래스 Psecio\Jwt\Claim

파일 보기 프로젝트 열기: psecio/jwt

보호된 프로퍼티들

프로퍼티 타입 설명
$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