summaryrefslogtreecommitdiff
path: root/vendor/doctrine/orm/src/Tools/Event/GenerateSchemaTableEventArgs.php
blob: a09aaae8e2c1715acecbc0802ba322e8b8fd5847 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php

declare(strict_types=1);

namespace Doctrine\ORM\Tools\Event;

use Doctrine\Common\EventArgs;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\DBAL\Schema\Table;
use Doctrine\ORM\Mapping\ClassMetadata;

/**
 * Event Args used for the Events::postGenerateSchemaTable event.
 *
 * @link        www.doctrine-project.com
 */
class GenerateSchemaTableEventArgs extends EventArgs
{
    public function __construct(
        private readonly ClassMetadata $classMetadata,
        private readonly Schema $schema,
        private readonly Table $classTable,
    ) {
    }

    public function getClassMetadata(): ClassMetadata
    {
        return $this->classMetadata;
    }

    public function getSchema(): Schema
    {
        return $this->schema;
    }

    public function getClassTable(): Table
    {
        return $this->classTable;
    }
}