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
Internal

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
string

consume()

public consume() : string
Return values
string

count()

public count() : int
Return values
int

        
On this page

Search results