Completed
Pull Request — master (#110)
by
unknown
01:32
created

MemberDetails   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 18
ccs 0
cts 5
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
1
<?php
2
3
namespace Syntax\SteamApi\Containers\Group;
4
5
class MemberDetails
6
{
7
    public $count;
8
9
    public $inChat;
10
11
    public $inGame;
12
13
    public $online;
14
15
    function __construct($details)
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
16
    {
17
        $this->count  = (int)(string)$details->memberCount;
18
        $this->inChat = (int)(string)$details->membersInChat;
19
        $this->inGame = (int)(string)$details->membersInGame;
20
        $this->online = (int)(string)$details->membersOnline;
21
    }
22
}
23