Json implements JsonSerializable, Stringable
Read onlyYes
FinalYes
Interfaces
- JsonSerializable
- Stringable
Methods
- __construct() : mixed
- __toString() : string
- fromArray() : self
- fromString() : self
- isEqual() : bool
- isObject() : bool
- isValid() : bool
- jsonSerialize() : array<string|int, mixed>
- toArray() : array<string|int, mixed>
- toString() : string
Methods
__construct()
public
__construct(string $value) : mixed
Parameters
- $value : string
__toString()
public
__toString() : string
Return values
stringfromArray()
public
static fromArray(array<string|int, mixed> $value[, bool $asObject = false ]) : self
Parameters
- $value : array<string|int, mixed>
- $asObject : bool = false
Return values
selffromString()
public
static fromString(string $value) : self
Parameters
- $value : string
Return values
selfisEqual()
public
isEqual(self $json) : bool
Parameters
- $json : self
Return values
boolisObject()
public
isObject() : bool
Return values
boolisValid()
public
static isValid(string $value) : bool
Parameters
- $value : string
Return values
booljsonSerialize()
public
jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed>toArray()
public
toArray() : array<string|int, mixed>
Return values
array<string|int, mixed>toString()
public
toString() : string