JsCode implements JsonSerializable
FinalYes
Table of Contents
Interfaces
- JsonSerializable
Methods
- __construct() : mixed
- getCode() : string
- jsonSerialize() : mixed
- Specify data which should be serialized to JSON
- setCode() : $this
Methods
__construct()
public
__construct(string $code) : mixed
Parameters
- $code : string
getCode()
public
getCode() : string
Return values
stringjsonSerialize()
Specify data which should be serialized to JSON
public
jsonSerialize() : mixed
Tags
Return values
mixed —data which can be serialized by json_encode, which is a value of any type other than a resource.
setCode()
public
setCode(string $code) : $this
Parameters
- $code : string