Passed
Pull Request — master (#3070)
by Sergei
07:45
created

AbstractVisitor   A

Complexity

Total Complexity 7

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Test Coverage

Coverage 61.53%

Importance

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

7 Methods

Rating   Name   Duplication   Size   Complexity  
A acceptSchema() 0 2 1
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
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 348
    public function acceptSchema(Schema $schema) : void
20
    {
21 348
    }
22
23 81
    public function acceptNamespace(string $namespaceName) : void
24
    {
25 81
    }
26
27
    public function acceptTable(Table $table) : void
28
    {
29
    }
30
31 348
    public function acceptColumn(Table $table, Column $column) : void
32
    {
33 348
    }
34
35
    public function acceptForeignKey(Table $localTable, ForeignKeyConstraint $fkConstraint) : void
36
    {
37
    }
38
39 239
    public function acceptIndex(Table $table, Index $index) : void
40
    {
41 239
    }
42
43
    public function acceptSequence(Sequence $sequence) : void
44
    {
45
    }
46
}
47