diff options
Diffstat (limited to 'vendor/doctrine/orm/src/Tools/Event/GenerateSchemaEventArgs.php')
-rw-r--r-- | vendor/doctrine/orm/src/Tools/Event/GenerateSchemaEventArgs.php | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/vendor/doctrine/orm/src/Tools/Event/GenerateSchemaEventArgs.php b/vendor/doctrine/orm/src/Tools/Event/GenerateSchemaEventArgs.php new file mode 100644 index 0000000..3b0993e --- /dev/null +++ b/vendor/doctrine/orm/src/Tools/Event/GenerateSchemaEventArgs.php | |||
@@ -0,0 +1,33 @@ | |||
1 | <?php | ||
2 | |||
3 | declare(strict_types=1); | ||
4 | |||
5 | namespace Doctrine\ORM\Tools\Event; | ||
6 | |||
7 | use Doctrine\Common\EventArgs; | ||
8 | use Doctrine\DBAL\Schema\Schema; | ||
9 | use Doctrine\ORM\EntityManagerInterface; | ||
10 | |||
11 | /** | ||
12 | * Event Args used for the Events::postGenerateSchema event. | ||
13 | * | ||
14 | * @link www.doctrine-project.com | ||
15 | */ | ||
16 | class GenerateSchemaEventArgs extends EventArgs | ||
17 | { | ||
18 | public function __construct( | ||
19 | private readonly EntityManagerInterface $em, | ||
20 | private readonly Schema $schema, | ||
21 | ) { | ||
22 | } | ||
23 | |||
24 | public function getEntityManager(): EntityManagerInterface | ||
25 | { | ||
26 | return $this->em; | ||
27 | } | ||
28 | |||
29 | public function getSchema(): Schema | ||
30 | { | ||
31 | return $this->schema; | ||
32 | } | ||
33 | } | ||