Passed
Pull Request — master (#10)
by Anton
07:57 queued 04:02
created

Group::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace Modules\Entitizer\Utils\Definition {
4
5
	use Modules\Entitizer\Utils\Definition;
6
7
	abstract class Group {
8
9
		protected $definition = null, $list = [];
10
11
		# Constructor
12
13
		public function __construct(Definition $definition) {
14
15
			$this->definition = $definition;
16
		}
17
18
		# Get item
19
20
		public function get(string $name) {
21
22
			return ($this->list[$name] ?? false);
23
		}
24
25
		# Return list
26
27
		public function list() {
28
29
			return $this->list;
30
		}
31
	}
32
}
33