Failed Conditions
Pull Request — develop (#3348)
by Sergei
10:40
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
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