diff options
author | polo <ordipolo@gmx.fr> | 2024-08-13 23:45:21 +0200 |
---|---|---|
committer | polo <ordipolo@gmx.fr> | 2024-08-13 23:45:21 +0200 |
commit | bf6655a534a6775d30cafa67bd801276bda1d98d (patch) | |
tree | c6381e3f6c81c33eab72508f410b165ba05f7e9c /vendor/doctrine/orm/src/Tools/Event | |
parent | 94d67a4b51f8e62e7d518cce26a526ae1ec48278 (diff) | |
download | AppliGestionPHP-bf6655a534a6775d30cafa67bd801276bda1d98d.zip |
VERSION 0.2 doctrine ORM et entités
Diffstat (limited to 'vendor/doctrine/orm/src/Tools/Event')
-rw-r--r-- | vendor/doctrine/orm/src/Tools/Event/GenerateSchemaEventArgs.php | 33 | ||||
-rw-r--r-- | vendor/doctrine/orm/src/Tools/Event/GenerateSchemaTableEventArgs.php | 40 |
2 files changed, 73 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 | } | ||
diff --git a/vendor/doctrine/orm/src/Tools/Event/GenerateSchemaTableEventArgs.php b/vendor/doctrine/orm/src/Tools/Event/GenerateSchemaTableEventArgs.php new file mode 100644 index 0000000..a09aaae --- /dev/null +++ b/vendor/doctrine/orm/src/Tools/Event/GenerateSchemaTableEventArgs.php | |||
@@ -0,0 +1,40 @@ | |||
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\DBAL\Schema\Table; | ||
10 | use Doctrine\ORM\Mapping\ClassMetadata; | ||
11 | |||
12 | /** | ||
13 | * Event Args used for the Events::postGenerateSchemaTable event. | ||
14 | * | ||
15 | * @link www.doctrine-project.com | ||
16 | */ | ||
17 | class GenerateSchemaTableEventArgs extends EventArgs | ||
18 | { | ||
19 | public function __construct( | ||
20 | private readonly ClassMetadata $classMetadata, | ||
21 | private readonly Schema $schema, | ||
22 | private readonly Table $classTable, | ||
23 | ) { | ||
24 | } | ||
25 | |||
26 | public function getClassMetadata(): ClassMetadata | ||
27 | { | ||
28 | return $this->classMetadata; | ||
29 | } | ||
30 | |||
31 | public function getSchema(): Schema | ||
32 | { | ||
33 | return $this->schema; | ||
34 | } | ||
35 | |||
36 | public function getClassTable(): Table | ||
37 | { | ||
38 | return $this->classTable; | ||
39 | } | ||
40 | } | ||