Completed
Pull Request — develop (#3515)
by Sergei
20:18
created

AbstractVisitor   A

Complexity

Total Complexity 7

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Test Coverage

Coverage 61.53%

Importance

Changes 0
Metric Value
wmc 7
eloc 1
dl 0
loc 31
ccs 8
cts 13
cp 0.6153
rs 10
c 0
b 0
f 0

7 Methods

Rating   Name   Duplication   Size   Complexity  
A acceptNamespace() 0 2 1
A acceptIndex() 0 2 1
A acceptSequence() 0 2 1
A acceptTable() 0 2 1
A acceptColumn() 0 2 1
A acceptForeignKey() 0 2 1
A acceptSchema() 0 2 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Doctrine\DBAL\Schema\Visitor;
6
7
use Doctrine\DBAL\Schema\Column;
8
use Doctrine\DBAL\Schema\ForeignKeyConstraint;
9
use Doctrine\DBAL\Schema\Index;
10
use Doctrine\DBAL\Schema\Schema;
11
use Doctrine\DBAL\Schema\Sequence;
12
use Doctrine\DBAL\Schema\Table;
13
14
/**
15
 * Abstract Visitor with empty methods for easy extension.
16
 */
17
class AbstractVisitor implements Visitor, NamespaceVisitor
18
{
19 340
    public function acceptSchema(Schema $schema)
20
    {
21 340
    }
22
23
    /**
24
     * {@inheritdoc}
25
     */
26 123
    public function acceptNamespace($namespaceName)
27
    {
28 123
    }
29
30
    public function acceptTable(Table $table)
31
    {
32
    }
33
34 340
    public function acceptColumn(Table $table, Column $column)
35
    {
36 340
    }
37
38
    public function acceptForeignKey(Table $localTable, ForeignKeyConstraint $fkConstraint)
39
    {
40
    }
41
42 327
    public function acceptIndex(Table $table, Index $index)
43
    {
44 327
    }
45
46
    public function acceptSequence(Sequence $sequence)
47
    {
48
    }
49
}
50