CsrfToken
class CsrfToken
A CSRF token.
Methods
| __construct(string $id, string|null $value) | ||
| 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
__construct(string $id, string|null $value)
Parameters
| string | $id | |
| string|null | $value |
string getId()
Returns the ID of the CSRF token.
Return Value
| string | The token ID |
string getValue()
Returns the value of the CSRF token.
Return Value
| string | The token value |
string __toString()
Returns the value of the CSRF token.
Return Value
| string | The token value |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Security/Csrf/CsrfToken.html