Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
<?php
2
 
3
namespace Doctrine\DBAL\Event;
4
 
5
use Doctrine\DBAL\Platforms\AbstractPlatform;
6
use Doctrine\DBAL\Schema\Table;
7
use InvalidArgumentException;
8
 
9
/**
10
 * Event Arguments used when the SQL query for dropping tables are generated inside {@see AbstractPlatform}.
11
 *
12
 * @deprecated
13
 */
14
class SchemaDropTableEventArgs extends SchemaEventArgs
15
{
16
    /** @var string|Table */
17
    private $table;
18
 
19
    private AbstractPlatform $platform;
20
 
21
    /** @var string|null */
22
    private $sql;
23
 
24
    /**
25
     * @param string|Table $table
26
     *
27
     * @throws InvalidArgumentException
28
     */
29
    public function __construct($table, AbstractPlatform $platform)
30
    {
31
        $this->table    = $table;
32
        $this->platform = $platform;
33
    }
34
 
35
    /** @return string|Table */
36
    public function getTable()
37
    {
38
        return $this->table;
39
    }
40
 
41
    /** @return AbstractPlatform */
42
    public function getPlatform()
43
    {
44
        return $this->platform;
45
    }
46
 
47
    /**
48
     * @param string $sql
49
     *
50
     * @return SchemaDropTableEventArgs
51
     */
52
    public function setSql($sql)
53
    {
54
        $this->sql = $sql;
55
 
56
        return $this;
57
    }
58
 
59
    /** @return string|null */
60
    public function getSql()
61
    {
62
        return $this->sql;
63
    }
64
}