Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php namespace Syntax\SteamApi\Containers; |
||
20 | function __construct($id) |
||
|
|||
21 | { |
||
22 | $client = new Client; |
||
23 | |||
24 | $steamIds = $client->convertId($id); |
||
25 | |||
26 | $this->id32 = $steamIds->id32; |
||
27 | $this->id64 = $steamIds->id64; |
||
28 | $this->id3 = $steamIds->id3; |
||
29 | |||
30 | $this->steamId = $this->id64; |
||
31 | $this->communityId = $this->id32; |
||
32 | } |
||
33 | |||
34 | } |
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.