class CsrfToken

A CSRF token.

Methods

__construct(string $id, string $value)

Constructor.

string
getId()

Returns the ID of the CSRF token.

string
getValue()

Returns the value of the CSRF token.

string
__toString()

Returns the value of the CSRF token.

Details

at line line 37
__construct(string $id, string $value)

Constructor.

Parameters

string $id The token ID
string $value The actual token value

at line line 48
string getId()

Returns the ID of the CSRF token.

Return Value

string The token ID

at line line 58
string getValue()

Returns the value of the CSRF token.

Return Value

string The token value

at line line 68
string __toString()

Returns the value of the CSRF token.

Return Value

string The token value