| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php namespace Syntax\SteamApi\Containers; |
||
| 23 | function __construct($group) |
||
|
|
|||
| 24 | { |
||
| 25 | $this->groupID64 = (string)$group->groupID64; |
||
| 26 | $this->groupDetails = new Details($group->groupDetails); |
||
| 27 | $this->memberDetails = new MemberDetails($group->groupDetails); |
||
| 28 | $this->startingMember = (int)(string)$group->startingMember; |
||
| 29 | |||
| 30 | $this->members = new Collection; |
||
| 31 | |||
| 32 | foreach ($group->members->steamID64 as $member) { |
||
| 33 | $this->members->add((new Client)->convertId((int)(string)$member)); |
||
| 34 | } |
||
| 35 | } |
||
| 36 | |||
| 38 | } |
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.