Failed Conditions
Pull Request — master (#3233)
by Sergey
10:50
created

AbstractVisitor::acceptNamespace()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 2
ccs 1
cts 1
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 0
nc 1
nop 1
crap 1
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
use Doctrine\DBAL\Schema\View;
29
30
/**
31
 * Abstract Visitor with empty methods for easy extension.
32
 */
33
class AbstractVisitor implements Visitor, NamespaceVisitor, ViewVisitor
34
{
35
    /**
36
     * @param \Doctrine\DBAL\Schema\Schema $schema
37
     */
38 251
    public function acceptSchema(Schema $schema)
39
    {
40 251
    }
41
42
    /**
43
     * {@inheritdoc}
44
     */
45 60
    public function acceptNamespace($namespaceName)
46
    {
47 60
    }
48
49
    /**
50
     * @param \Doctrine\DBAL\Schema\Table $table
51
     */
52
    public function acceptTable(Table $table)
53
    {
54
    }
55
56
    /**
57
     * @param \Doctrine\DBAL\Schema\Table  $table
58
     * @param \Doctrine\DBAL\Schema\Column $column
59
     */
60 251
    public function acceptColumn(Table $table, Column $column)
61
    {
62 251
    }
63
64
    /**
65
     * @param \Doctrine\DBAL\Schema\Table                $localTable
66
     * @param \Doctrine\DBAL\Schema\ForeignKeyConstraint $fkConstraint
67
     */
68
    public function acceptForeignKey(Table $localTable, ForeignKeyConstraint $fkConstraint)
69
    {
70
    }
71
72
    /**
73
     * @param \Doctrine\DBAL\Schema\Table $table
74
     * @param \Doctrine\DBAL\Schema\Index $index
75
     */
76 174
    public function acceptIndex(Table $table, Index $index)
77
    {
78 174
    }
79
80
    /**
81
     * @param \Doctrine\DBAL\Schema\Sequence $sequence
82
     */
83
    public function acceptSequence(Sequence $sequence)
84
    {
85
    }
86
87
    /**
88
     * @param \Doctrine\DBAL\Schema\View $view
89
     */
90
    public function acceptView(View $view)
91
    {
92
    }
93
}
94