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\Connection;
6
use Doctrine\DBAL\Schema\Column;
7
 
8
/**
9
 * Event Arguments used when the portable column definition is generated inside {@see AbstractPlatform}.
10
 *
11
 * @deprecated
12
 */
13
class SchemaColumnDefinitionEventArgs extends SchemaEventArgs
14
{
15
    private ?Column $column = null;
16
 
17
    /**
18
     * Raw column data as fetched from the database.
19
     *
20
     * @var mixed[]
21
     */
22
    private $tableColumn;
23
 
24
    /** @var string */
25
    private $table;
26
 
27
    /** @var string */
28
    private $database;
29
 
30
    private Connection $connection;
31
 
32
    /**
33
     * @param mixed[] $tableColumn
34
     * @param string  $table
35
     * @param string  $database
36
     */
37
    public function __construct(array $tableColumn, $table, $database, Connection $connection)
38
    {
39
        $this->tableColumn = $tableColumn;
40
        $this->table       = $table;
41
        $this->database    = $database;
42
        $this->connection  = $connection;
43
    }
44
 
45
    /**
46
     * Allows to clear the column which means the column will be excluded from
47
     * tables column list.
48
     *
49
     * @return SchemaColumnDefinitionEventArgs
50
     */
51
    public function setColumn(?Column $column = null)
52
    {
53
        $this->column = $column;
54
 
55
        return $this;
56
    }
57
 
58
    /** @return Column|null */
59
    public function getColumn()
60
    {
61
        return $this->column;
62
    }
63
 
64
    /** @return mixed[] */
65
    public function getTableColumn()
66
    {
67
        return $this->tableColumn;
68
    }
69
 
70
    /** @return string */
71
    public function getTable()
72
    {
73
        return $this->table;
74
    }
75
 
76
    /** @return string */
77
    public function getDatabase()
78
    {
79
        return $this->database;
80
    }
81
 
82
    /** @return Connection */
83
    public function getConnection()
84
    {
85
        return $this->connection;
86
    }
87
}