PHP Class Psecio\Jwt\ClaimsCollection

Inheritance: implements Countable, implements Iterator
Afficher le fichier Open project: psecio/jwt Class Usage Examples

Méthodes publiques

Méthode Description
add ( Claim $claim ) : ClaimsCollection Add a claim to the collection
count ( ) : integer Return a count of the current data
current ( ) : mixed Return the current item in the set
key ( ) : integer Return the current key (position) value
next ( ) : integer Get the next position value
rewind ( ) Rewind to the beginning of the set (position = 0)
toArray ( ) : array Convert the collection to a nested array
valid ( ) : boolean See if the requested position exists in the data

Method Details

add() public méthode

Add a claim to the collection
public add ( Claim $claim ) : ClaimsCollection
$claim Claim Claim instance
Résultat ClaimsCollection instance

count() public méthode

Return a count of the current data
public count ( ) : integer
Résultat integer Count result

current() public méthode

Return the current item in the set
public current ( ) : mixed
Résultat mixed Current data item

key() public méthode

Return the current key (position) value
public key ( ) : integer
Résultat integer Position value

next() public méthode

Get the next position value
public next ( ) : integer
Résultat integer Next position

rewind() public méthode

Rewind to the beginning of the set (position = 0)
public rewind ( )

toArray() public méthode

Convert the collection to a nested array
public toArray ( ) : array
Résultat array Contents of the collection

valid() public méthode

See if the requested position exists in the data
public valid ( ) : boolean
Résultat boolean Exists/doesn't exist