UserEntity   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
namespace Lagdo\DbAdmin\Driver\Entity;
4
5
class UserEntity
6
{
7
    /**
8
     * @var string
9
     */
10
    public $name = '';
11
12
    /**
13
     * @var string
14
     */
15
    public $host = '';
16
17
18
    /**
19
     * @var string
20
     */
21
    public $password = '';
22
23
    /**
24
     * @var array
25
     */
26
    public $grants = [];
27
28
    /**
29
     * @var array
30
     */
31
    public $privileges = [];
32
33
    /**
34
     * The constructor
35
     *
36
     * @param string $name
37
     * @param string $host
38
     */
39
    public function __construct(string $name = '', string $host = '')
40
    {
41
        $this->name = $name;
42
        $this->host = $host;
43
    }
44
}
45