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

Details::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 13
Code Lines 11

Duplication

Lines 0
Ratio 0 %

Importance

Changes 3
Bugs 0 Features 0
Metric Value
c 3
b 0
f 0
dl 0
loc 13
rs 9.4285
cc 1
eloc 11
nc 1
nop 1
1
<?php namespace Syntax\SteamApi\Containers\Group;
2
3
use Syntax\SteamApi\Containers\BaseContainer;
4
5
class Details extends BaseContainer {
6
7
	public $name;
8
9
	public $url;
10
11
	public $headline;
12
13
	public $summary;
14
15
	public $avatarIcon;
16
17
	public $avatarMedium;
18
19
	public $avatarFull;
20
21
	public $avatarIconUrl;
22
23
	public $avatarMediumUrl;
24
25
	public $avatarFullUrl;
26
27
	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...
28
	{
29
		$this->name            = (string)$details->groupName;
30
		$this->url             = (string)$details->groupUrl;
31
		$this->headline        = (string)$details->headline;
32
		$this->summary         = (string)$details->summary;
33
		$this->avatarIcon      = $this->getImageForAvatar((string)$details->avatarIcon);
34
		$this->avatarMedium    = $this->getImageForAvatar((string)$details->avatarMedium);
35
		$this->avatarFull      = $this->getImageForAvatar((string)$details->avatarFull);
36
		$this->avatarIconUrl   = (string)$details->avatarIcon;
37
		$this->avatarMediumUrl = (string)$details->avatarMedium;
38
		$this->avatarFullUrl   = (string)$details->avatarFull;
39
	}
40
41
}