Passed
Push — main ( 40936e...9d67f9 )
by Thierry
01:44
created

ConfigTrait::onActions()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 1
b 0
f 0
1
<?php
2
3
namespace Lagdo\DbAdmin\Driver;
4
5
trait ConfigTrait
6
{
7
    /**
8
     * Get the server jush
9
     *
10
     * @return string
11
     */
12
    public function jush()
13
    {
14
        return $this->config->jush;
15
    }
16
17
    /**
18
     * @return array
19
     */
20
    public function unsigned()
21
    {
22
        return $this->config->unsigned;
23
    }
24
25
    /**
26
     * @return array
27
     */
28
    public function functions()
29
    {
30
        return $this->config->functions;
31
    }
32
33
    /**
34
     * @return array
35
     */
36
    public function grouping()
37
    {
38
        return $this->config->grouping;
39
    }
40
41
    /**
42
     * @return array
43
     */
44
    public function operators()
45
    {
46
        return $this->config->operators;
47
    }
48
49
    /**
50
     * @return array
51
     */
52
    public function editFunctions()
53
    {
54
        return $this->config->editFunctions;
55
    }
56
57
    /**
58
     * @return array
59
     */
60
    public function types()
61
    {
62
        return $this->config->types;
63
    }
64
65
    /**
66
     * @param string $type
67
     *
68
     * @return bool
69
     */
70
    public function typeExists(string $type)
71
    {
72
        return isset($this->config->types[$type]);
73
    }
74
75
    /**
76
     * @param string $type
77
     *
78
     * @return mixed
79
     */
80
    public function type(string $type)
81
    {
82
        return $this->config->types[$type];
83
    }
84
85
    /**
86
     * @return array
87
     */
88
    public function structuredTypes()
89
    {
90
        return $this->config->structuredTypes;
91
    }
92
93
    /**
94
     * @param string $key
95
     * @param mixed $value
96
     *
97
     * @return void
98
     */
99
    public function setStructuredType(string $key, $value)
100
    {
101
        $this->config->structuredTypes[$key] = $value;
102
    }
103
}
104