FormattedValue
in package
implements
JsonSerializable, Stringable
Read onlyYes
FinalYes
A value for templates: formatted for display and available in raw form.
Casting to string returns the formatted value, so {{ $value }} prints it.
Table of Contents
Interfaces
- JsonSerializable
- Stringable
Properties
- $formatted : string
- $raw : mixed
Methods
- __construct() : mixed
- __toString() : string
- jsonSerialize() : string
Properties
$formatted
public
string
$formatted
$raw
public
mixed
$raw
= null
Methods
__construct()
public
__construct(string $formatted[, mixed $raw = null ]) : mixed
Parameters
- $formatted : string
- $raw : mixed = null
__toString()
public
__toString() : string
Return values
stringjsonSerialize()
public
jsonSerialize() : string