<?php

/**
 * MIT License. This file is part of the Propel package.
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Propel\Generator\Schema\Dumper;

use Propel\Generator\Model\Database;
use Propel\Generator\Model\Schema;

interface DumperInterface
{
    /**
     * Dumps a Database model into a text formatted version.
     *
     * @param \Propel\Generator\Model\Database $database The database model
     *
     * @return string The dumped formatted output (XML, YAML, CSV...)
     */
    public function dump(Database $database);

    /**
     * Dumps a single Schema model into an XML formatted version.
     *
     * @param \Propel\Generator\Model\Schema $schema The schema model
     * @param bool $doFinalInitialization Whether or not to validate the schema
     *
     * @return string The dumped formatted output (XML, YAML, CSV...)
     */
    public function dumpSchema(Schema $schema, $doFinalInitialization = true);
}
