Info
extends Base
in package
Table of Contents
Properties
Methods
- fromObj() : self
- fromReq() : self
- setDetail() : void
- setStats() : void
- toJson() : string
- Converts item into a JSON string
- setMeta() : void
Properties
$detail
public
object
$detail
$meta
public
Meta
$meta
$stats
public
object
$stats
Methods
fromObj()
public
static fromObj(object $cache) : self
Parameters
- $cache : object
Return values
selffromReq()
public
static fromReq(Response $req) : self
Parameters
- $req : Response
Return values
selfsetDetail()
public
setDetail(object $detail) : void
Parameters
- $detail : object
setStats()
public
setStats(object $stats) : void
Parameters
- $stats : object
toJson()
Converts item into a JSON string
public
toJson([bool $pretty_print = false ]) : string
Parameters
- $pretty_print : bool = false
-
Use pretty print
Return values
stringsetMeta()
private
setMeta(Response $req) : void
Parameters
- $req : Response