AbstractVisitor.php 980 Bytes
Newer Older
1 2
<?php

Michael Moravec's avatar
Michael Moravec committed
3 4
declare(strict_types=1);

5 6 7 8 9
namespace Doctrine\DBAL\Schema\Visitor;

use Doctrine\DBAL\Schema\Column;
use Doctrine\DBAL\Schema\ForeignKeyConstraint;
use Doctrine\DBAL\Schema\Index;
10 11 12
use Doctrine\DBAL\Schema\Schema;
use Doctrine\DBAL\Schema\Sequence;
use Doctrine\DBAL\Schema\Table;
13 14 15 16

/**
 * Abstract Visitor with empty methods for easy extension.
 */
17
class AbstractVisitor implements Visitor, NamespaceVisitor
18
{
19
    public function acceptSchema(Schema $schema) : void
20 21 22
    {
    }

23
    public function acceptNamespace(string $namespaceName) : void
24 25 26
    {
    }

27
    public function acceptTable(Table $table) : void
28 29 30
    {
    }

31
    public function acceptColumn(Table $table, Column $column) : void
32 33 34
    {
    }

35
    public function acceptForeignKey(Table $localTable, ForeignKeyConstraint $fkConstraint) : void
36 37 38
    {
    }

39
    public function acceptIndex(Table $table, Index $index) : void
40 41 42
    {
    }

43
    public function acceptSequence(Sequence $sequence) : void
44 45 46
    {
    }
}