AbstractVisitor.php 935 Bytes
Newer Older
1 2 3 4 5 6 7
<?php

namespace Doctrine\DBAL\Schema\Visitor;

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

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

21 22 23 24 25 26 27
    /**
     * {@inheritdoc}
     */
    public function acceptNamespace($namespaceName)
    {
    }

28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
    public function acceptTable(Table $table)
    {
    }

    public function acceptColumn(Table $table, Column $column)
    {
    }

    public function acceptForeignKey(Table $localTable, ForeignKeyConstraint $fkConstraint)
    {
    }

    public function acceptIndex(Table $table, Index $index)
    {
    }

    public function acceptSequence(Sequence $sequence)
    {
    }
}