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

Id   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 2
Bugs 1 Features 0
Metric Value
wmc 1
c 2
b 1
f 0
lcom 0
cbo 1
dl 0
loc 30
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 13 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
}