UserEntity::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
nc 1
nop 2
dl 0
loc 4
rs 10
c 1
b 0
f 0
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