Completed
Pull Request — Laravel4 (#36)
by
unknown
10:35
created

Achievement::__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;
2
3
class Achievement {
4
	public $apiName;
5
6
	public $achieved;
7
8
	public $name;
9
10
	public $description;
11
12
	public function __construct($achievement)
13
	{
14
		$this->apiName     = $achievement->apiname;
15
		$this->achieved    = $achievement->achieved;
16
		$this->name        = $achievement->name;
17
		$this->description = $achievement->description;
18
	}
19
20
}