| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | 2 | function __construct($group) |
|
|
|
|||
| 27 | { |
||
| 28 | 2 | $this->groupID64 = (string)$group->groupID64; |
|
| 29 | 2 | $this->groupDetails = new Details($group->groupDetails); |
|
| 30 | 2 | $this->memberDetails = new MemberDetails($group->groupDetails); |
|
| 31 | 2 | $this->startingMember = (int)(string)$group->startingMember; |
|
| 32 | |||
| 33 | 2 | $this->members = new Collection; |
|
| 34 | |||
| 35 | 2 | foreach ($group->members->steamID64 as $member) { |
|
| 36 | 2 | $this->members->add((new Client)->convertId((string)$member)); |
|
| 37 | } |
||
| 38 | 2 | } |
|
| 39 | } |
||
| 40 |
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.