TriggerEntity::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 5
c 1
b 0
f 0
nc 1
nop 5
dl 0
loc 8
rs 10
1
<?php
2
3
namespace Lagdo\DbAdmin\Driver\Entity;
4
5
class TriggerEntity
6
{
7
    /**
8
     * @var string
9
     */
10
    public $name = '';
11
12
    /**
13
     * @var string
14
     */
15
    public $timing = '';
16
17
    /**
18
     * @var string
19
     */
20
    public $event = '';
21
22
    /**
23
     * @var string
24
     */
25
    public $statement = '';
26
27
    /**
28
     * @var string
29
     */
30
    public $of = '';
31
32
    /**
33
     * The constructor
34
     *
35
     * @param string $timing
36
     * @param string $event
37
     * @param string $of
38
     * @param string $statement
39
     * @param string $name
40
     */
41
    public function __construct(string $timing = '', string $event = '',
42
        string $statement = '', string $of = '', string $name = '')
43
    {
44
        $this->timing = $timing;
45
        $this->event = $event;
46
        $this->statement = $statement;
47
        $this->of = $of;
48
        $this->name = $name;
49
    }
50
}
51