<?php

declare(strict_types=1);

namespace BeyondSEODeps\Doctrine\ORM\Tools\Event;

use BeyondSEODeps\Doctrine\Common\EventArgs;
use BeyondSEODeps\Doctrine\DBAL\Schema\Schema;
use BeyondSEODeps\Doctrine\ORM\EntityManagerInterface;

/**
 * Event Args used for the Events::postGenerateSchema event.
 *
 * @link        www.doctrine-project.com
 */
class GenerateSchemaEventArgs extends EventArgs
{
    /** @var EntityManagerInterface */
    private $em;

    /** @var Schema */
    private $schema;

    public function __construct(EntityManagerInterface $em, Schema $schema)
    {
        $this->em     = $em;
        $this->schema = $schema;
    }

    /** @return EntityManagerInterface */
    public function getEntityManager()
    {
        return $this->em;
    }

    /** @return Schema */
    public function getSchema()
    {
        return $this->schema;
    }
}
