NoColumnsSpecifiedForTable.php 412 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
<?php

declare(strict_types=1);

namespace Doctrine\DBAL\Platforms\Exception;

use Doctrine\DBAL\DBALException;
use function sprintf;

Grégoire Paris's avatar
Grégoire Paris committed
10 11 12
/**
 * @psalm-immutable
 */
13 14 15 16
final class NoColumnsSpecifiedForTable extends DBALException implements PlatformException
{
    public static function new(string $tableName) : self
    {
17
        return new self(sprintf('No columns specified for table "%s".', $tableName));
18 19
    }
}