Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
22 | 4 | function __construct($id) |
|
|
|||
23 | { |
||
24 | 4 | $client = new Client; |
|
25 | |||
26 | 4 | $steamIds = $client->convertId($id); |
|
27 | |||
28 | 4 | $this->id32 = $steamIds->id32; |
|
29 | 4 | $this->id64 = $steamIds->id64; |
|
30 | 4 | $this->id3 = $steamIds->id3; |
|
31 | |||
32 | 4 | $this->steamId = $this->id64; |
|
33 | 4 | $this->communityId = $this->id32; |
|
34 | 4 | } |
|
35 | } |
||
36 |
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.