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

ArchiveItemAbstract::__construct()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 7
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 3
nc 2
nop 2
dl 0
loc 7
rs 10
c 0
b 0
f 0
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