Completed
Push — Laravel4 ( 02d48b...8c5149 )
by Travis
03:47 queued 03:02
created

MemberDetails::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 7
rs 9.4285
cc 1
eloc 5
nc 1
nop 1
1
<?php namespace Syntax\SteamApi\Containers\Group;
2
3
class MemberDetails {
4
5
	public $count;
6
7
	public $inChat;
8
9
	public $inGame;
10
11
	public $online;
12
13
	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...
14
	{
15
		$this->count  = (int)(string)$details->memberCount;
16
		$this->inChat = (int)(string)$details->membersInChat;
17
		$this->inGame = (int)(string)$details->membersInGame;
18
		$this->online = (int)(string)$details->membersOnline;
19
	}
20
21
}