Passed
Pull Request — master (#10)
by Anton
04:10
created

Item::__get()   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
	abstract class Item {
6
7
		protected $name = '';
8
9
		# Getter
10
11
		public function __get(string $property) {
12
13
			return ($this->$property ?? null);
14
		}
15
	}
16
}
17