Passed
Push — main ( af1024...b746de )
by Thierry
02:04
created

Database::sequences()   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\Db;
4
5
use Lagdo\DbAdmin\Driver\DriverInterface;
6
use Lagdo\DbAdmin\Driver\UtilInterface;
7
use Lagdo\DbAdmin\Driver\TranslatorInterface;
8
9
abstract class Database implements DatabaseInterface
10
{
11
    /**
12
     * @var DriverInterface
13
     */
14
    protected $driver;
15
16
    /**
17
     * @var UtilInterface
18
     */
19
    protected $util;
20
21
    /**
22
     * @var TranslatorInterface
23
     */
24
    protected $trans;
25
26
    /**
27
     * @var ConnectionInterface
28
     */
29
    protected $connection;
30
31
    /**
32
     * The constructor
33
     *
34
     * @param DriverInterface $driver
35
     * @param UtilInterface $util
36
     * @param TranslatorInterface $trans
37
     * @param ConnectionInterface $connection
38
     */
39
    public function __construct(DriverInterface $driver, UtilInterface $util, TranslatorInterface $trans, ConnectionInterface $connection)
40
    {
41
        $this->driver = $driver;
42
        $this->util = $util;
43
        $this->trans = $trans;
44
        $this->connection = $connection;
45
    }
46
47
    /**
48
     * @inheritDoc
49
     */
50
    public function dropViews(array $views)
51
    {
52
        return false;
53
    }
54
55
    /**
56
     * @inheritDoc
57
     */
58
    public function moveTables(array $tables, array $views, string $target)
59
    {
60
        return false;
61
    }
62
63
    /**
64
     * @inheritDoc
65
     */
66
    public function copyTables(array $tables, array $views, string $target)
67
    {
68
        return false;
69
    }
70
71
    /**
72
     * @inheritDoc
73
     */
74
    public function truncateTables(array $tables)
75
    {
76
        return false;
77
    }
78
79
    /**
80
     * @inheritDoc
81
     */
82
    public function sequences()
83
    {
84
        return [];
85
    }
86
87
    /**
88
     * @inheritDoc
89
     */
90
    public function userTypes()
91
    {
92
        return [];
93
    }
94
95
    /**
96
     * @inheritDoc
97
     */
98
    public function schemas()
99
    {
100
        return [];
101
    }
102
103
    /**
104
     * @inheritDoc
105
     */
106
    public function events()
107
    {
108
        return [];
109
    }
110
111
    /**
112
     * @inheritDoc
113
     */
114
    public function routine(string $name, string $type)
115
    {
116
        return null;
117
    }
118
119
    /**
120
     * @inheritDoc
121
     */
122
    public function routines()
123
    {
124
        return [];
125
    }
126
127
    /**
128
     * @inheritDoc
129
     */
130
    public function routineId(string $name, array $row)
131
    {
132
        return '';
133
    }
134
}
135