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

declare(strict_types=1);

namespace Doctrine\DBAL\Driver\Exception;

use Doctrine\DBAL\DBALException;
use function sprintf;

Grégoire Paris's avatar
Grégoire Paris committed
10 11 12
/**
 * @psalm-immutable
 */
13 14
final class UnknownFetchMode extends DBALException
{
15
    public static function new(int $fetchMode) : self
16 17 18 19
    {
        return new self(sprintf('Unknown fetch mode %d.', $fetchMode));
    }
}