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

AbstractVisitor::acceptColumn()   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 2
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 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