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
- $value : string
Methods
- __construct() : mixed
- __toString() : string
- consume() : string
- count() : int
Properties
$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