User   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
c 1
b 0
f 0
dl 0
loc 14
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 1
1
<?php
2
3
namespace Example\Models\Database_1;
4
5
use Stonks\DataLayer\DataLayer;
6
7
/**
8
 * Class User
9
 *
10
 * @property int|string $id
11
 * @property string $first_name
12
 * @property string $last_name
13
 * @property string $name
14
 * @property string $email
15
 * @property string $created_at
16
 * @property string $updated_at
17
 *
18
 * @package Example\Models\Database_1
19
 */
20
class User extends DataLayer
21
{
22
23
	/**
24
	 * User constructor.
25
	 */
26
	public function __construct()
27
	{
28
		parent::__construct('user', [
29
			'first_name',
30
			'last_name',
31
			'name',
32
			'email',
33
		], 'id', true, 'db_1');
34
	}
35
}