Failed Conditions
Pull Request — develop (#3348)
by Sergei
10:40
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 362
    public function acceptSchema(Schema $schema) : void
20
    {
21 362
    }
22
23
    /**
24
     * {@inheritdoc}
25
     */
26 133
    public function acceptNamespace(string $namespaceName) : void
27
    {
28 133
    }
29
30
    public function acceptTable(Table $table) : void
31
    {
32
    }
33
34 362
    public function acceptColumn(Table $table, Column $column) : void
35
    {
36 362
    }
37
38
    public function acceptForeignKey(Table $localTable, ForeignKeyConstraint $fkConstraint) : void
39
    {
40
    }
41
42 349
    public function acceptIndex(Table $table, Index $index) : void
43
    {
44 349
    }
45
46
    public function acceptSequence(Sequence $sequence) : void
47
    {
48
    }
49
}
50