Passed
Push — 0.3.0 ( 0d73f1...9a02d7 )
by Anton
04:10
created

User   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 2
dl 0
loc 14
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A init() 0 7 1
1
<?php
2
3
namespace Modules\Entitizer\Dataset {
4
5
	use Modules\Entitizer;
6
7
	class User extends Entitizer\Utils\Dataset {
8
9
		use Entitizer\Common\User;
10
11
		# Init dataset
12
13
		protected function init() {
14
15
			$this->addHandler('full_name', function (array $data) {
16
17
				return trim($data['first_name'] . ' ' . $data['last_name']);
18
			});
19
		}
20
	}
21
}
22