MemberDetails   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 18
ccs 6
cts 6
cp 1
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 2
    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 2
        $this->count  = (int)(string)$details->memberCount;
18 2
        $this->inChat = (int)(string)$details->membersInChat;
19 2
        $this->inGame = (int)(string)$details->membersInGame;
20 2
        $this->online = (int)(string)$details->membersOnline;
21 2
    }
22
}
23