1
|
|
|
<?php |
2
|
|
|
/* |
3
|
|
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
4
|
|
|
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
5
|
|
|
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
6
|
|
|
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
7
|
|
|
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
8
|
|
|
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
9
|
|
|
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
10
|
|
|
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
11
|
|
|
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
12
|
|
|
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
13
|
|
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
14
|
|
|
* |
15
|
|
|
* This software consists of voluntary contributions made by many individuals |
16
|
|
|
* and is licensed under the MIT license. For more information, see |
17
|
|
|
* <http://www.doctrine-project.org>. |
18
|
|
|
*/ |
19
|
|
|
|
20
|
|
|
namespace Doctrine\DBAL\Schema\Visitor; |
21
|
|
|
|
22
|
|
|
use Doctrine\DBAL\Schema\Table; |
23
|
|
|
use Doctrine\DBAL\Schema\Schema; |
24
|
|
|
use Doctrine\DBAL\Schema\Column; |
25
|
|
|
use Doctrine\DBAL\Schema\ForeignKeyConstraint; |
26
|
|
|
use Doctrine\DBAL\Schema\Sequence; |
27
|
|
|
use Doctrine\DBAL\Schema\Index; |
28
|
|
|
|
29
|
|
|
/** |
30
|
|
|
* Abstract Visitor with empty methods for easy extension. |
31
|
|
|
*/ |
32
|
|
|
class AbstractVisitor implements Visitor, NamespaceVisitor |
33
|
|
|
{ |
34
|
|
|
/** |
35
|
|
|
* @param \Doctrine\DBAL\Schema\Schema $schema |
36
|
|
|
*/ |
37
|
13 |
|
public function acceptSchema(Schema $schema) |
38
|
|
|
{ |
39
|
13 |
|
} |
40
|
|
|
|
41
|
|
|
/** |
42
|
|
|
* {@inheritdoc} |
43
|
|
|
*/ |
44
|
3 |
|
public function acceptNamespace($namespaceName) |
45
|
|
|
{ |
46
|
3 |
|
} |
47
|
|
|
|
48
|
|
|
/** |
49
|
|
|
* @param \Doctrine\DBAL\Schema\Table $table |
50
|
|
|
*/ |
51
|
|
|
public function acceptTable(Table $table) |
52
|
|
|
{ |
53
|
|
|
} |
54
|
|
|
|
55
|
|
|
/** |
56
|
|
|
* @param \Doctrine\DBAL\Schema\Table $table |
57
|
|
|
* @param \Doctrine\DBAL\Schema\Column $column |
58
|
|
|
*/ |
59
|
13 |
|
public function acceptColumn(Table $table, Column $column) |
60
|
|
|
{ |
61
|
13 |
|
} |
62
|
|
|
|
63
|
|
|
/** |
64
|
|
|
* @param \Doctrine\DBAL\Schema\Table $localTable |
65
|
|
|
* @param \Doctrine\DBAL\Schema\ForeignKeyConstraint $fkConstraint |
66
|
|
|
*/ |
67
|
|
|
public function acceptForeignKey(Table $localTable, ForeignKeyConstraint $fkConstraint) |
68
|
|
|
{ |
69
|
|
|
} |
70
|
|
|
|
71
|
|
|
/** |
72
|
|
|
* @param \Doctrine\DBAL\Schema\Table $table |
73
|
|
|
* @param \Doctrine\DBAL\Schema\Index $index |
74
|
|
|
*/ |
75
|
9 |
|
public function acceptIndex(Table $table, Index $index) |
76
|
|
|
{ |
77
|
9 |
|
} |
78
|
|
|
|
79
|
|
|
/** |
80
|
|
|
* @param \Doctrine\DBAL\Schema\Sequence $sequence |
81
|
|
|
*/ |
82
|
|
|
public function acceptSequence(Sequence $sequence) |
83
|
|
|
{ |
84
|
|
|
} |
85
|
|
|
} |
86
|
|
|
|