. */ namespace Doctrine\ORM\Tools\Event; use Doctrine\Common\EventArgs; use Doctrine\DBAL\Schema\Schema; use Doctrine\ORM\EntityManager; /** * Event Args used for the Events::postGenerateSchema event. * * @license http://www.opensource.org/licenses/lgpl-license.php LGPL * @link www.doctrine-project.com * @since 1.0 * @author Benjamin Eberlei */ class GenerateSchemaEventArgs extends EventArgs { private $em; private $schema; /** * @param EntityManager $em * @param Schema $schema */ public function __construct(EntityManager $em, Schema $schema) { $this->em = $em; $this->schema = $schema; } /** * @return EntityManager */ public function getEntityManager() { return $this->em; } /** * @return Schema */ public function getSchema() { return $this->schema; } }