ConsumableNonce extends ConsumableString
FinalYes
String wrapper that keeps track of how often the value was consumed.
This can be used to make decisions during runtime, depending on whether a provided value actually has been used (e.g. in rendered content).
Table of Contents
Properties
Methods
- __construct() : mixed
- __toString() : string
- consume() : string
- count() : int
Properties
$b64 read-only
will be removed in TYPO3 v13.0, use ConsumableNonce::consume() or ConsumableNonce::$value instead
public
string
$b64
backward compatibility for Nonce::$b64
$value read-only
public
string
$value
use the consume()
method instead
Methods
__construct()
public
__construct([string|null $nonce = null ]) : mixed
Parameters
- $nonce : string|null = null
__toString()
public
__toString() : string
Return values
stringconsume()
public
consume() : string
Return values
stringcount()
public
count() : int