NoColumnsSpecifiedForTable.php 384 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
<?php

declare(strict_types=1);

namespace Doctrine\DBAL\Platforms\Exception;

use Doctrine\DBAL\DBALException;
use function sprintf;

final class NoColumnsSpecifiedForTable extends DBALException implements PlatformException
{
    public static function new(string $tableName) : self
    {
14
        return new self(sprintf('No columns specified for table "%s".', $tableName));
15 16
    }
}