PHP Класс Psecio\Jwt\ClaimsCollection

Наследование: implements Countable, implements Iterator
Показать файл Открыть проект Примеры использования класса

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

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

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

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

Add a claim to the collection
public add ( Claim $claim ) : ClaimsCollection
$claim Claim Claim instance
Результат ClaimsCollection instance

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

Return a count of the current data
public count ( ) : integer
Результат integer Count result

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

Return the current item in the set
public current ( ) : mixed
Результат mixed Current data item

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

Return the current key (position) value
public key ( ) : integer
Результат integer Position value

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

Get the next position value
public next ( ) : integer
Результат integer Next position

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

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

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

Convert the collection to a nested array
public toArray ( ) : array
Результат array Contents of the collection

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

See if the requested position exists in the data
public valid ( ) : boolean
Результат boolean Exists/doesn't exist