Passed
Push — master ( bdfaf8...931c46 )
by smiley
01:33
created

ArchiveItemAbstract   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 13
rs 10
c 0
b 0
f 0
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 2
1
<?php
2
/**
3
 * Class ArchiveItemAbstract
4
 *
5
 * @filesource   ArchiveItemAbstract.php
6
 * @created      28.04.2019
7
 * @package      codemasher\WildstarDB
8
 * @author       smiley <[email protected]>
9
 * @copyright    2019 smiley
10
 * @license      MIT
11
 */
12
13
namespace codemasher\WildstarDB;
14
15
abstract class ArchiveItemAbstract{
16
17
	public $Parent;
18
	public $Name;
19
	public $NameOffset;
20
21
	public function __construct(array $data, string $parent){
22
23
		foreach($data as $property => $value){
24
			$this->{$property} = $value;
25
		}
26
27
		$this->Parent = $parent;
28
	}
29
30
}
31