Kshabazz\BattleNet\D3\Profile¶
- class Profile¶
Class Profile
- __construct($pJson)¶
Parameters: - $pJson –
- battleTag()¶
Get battle net tag.
Returns: string
- get($pProperty)¶
Get property
Parameters: - $pProperty –
- heroes()¶
Returns: mixed Heroes(s) data as an array, or null if none.
- getHero($pHeroByName)¶
Get hero by name
Parameters: - $pHeroByName (mixed) – string Optional name to specify a single hero to return.
Returns: array|null
- init()¶
Initialize all the properties for this object.
Returns: $this
- json()¶
Get raw JSON data returned from Battle.net.
- jsonSerialize()¶
Specify how this object is to be used with json_encode.
Returns: stdClass