User::init()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 2
b 0
f 0
nc 1
nop 0
dl 0
loc 5
rs 10
1
<?php
2
3
namespace Epesi\Core\System\User\Database\Models\atk4;
4
5
use atk4\data\Model;
6
use Epesi\Core\Data\HasEpesiConnection;
7
8
class User extends Model
9
{
10
    use HasEpesiConnection;
11
    
12
	public $table = 'users';
13
	
14
	protected function init(): void
15
	{
16
		parent::init();
17
		
18
		$this->addFields(['name']);
19
	}
20
}
21