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

Id::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 13
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 13
rs 9.4285
cc 1
eloc 8
nc 1
nop 1
1
<?php namespace Syntax\SteamApi\Containers;
2
3
use Syntax\SteamApi\Client;
4
5
class Id {
6
7
	public $id32;
8
9
	public $id64;
10
11
	public $id3;
12
13
	public $communityId;
14
15
	public $steamId;
16
17
	/**
18
	 * @param integer $id
19
	 */
20
	function __construct($id)
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...
21
	{
22
		$client = new Client;
23
24
		$steamIds = $client->convertId($id);
25
26
		$this->id32 = $steamIds->id32;
27
		$this->id64 = $steamIds->id64;
28
		$this->id3  = $steamIds->id3;
29
30
		$this->steamId     = $this->id64;
31
		$this->communityId = $this->id32;
32
	}
33
34
}