ok

Mini Shell

Direktori : /home2/selectio/public_html/innerstore/vendor/doctrine/dbal/src/Exception/
Upload File :
Current File : /home2/selectio/public_html/innerstore/vendor/doctrine/dbal/src/Exception/InvalidLockMode.php

<?php

namespace Doctrine\DBAL\Exception;

use Doctrine\DBAL\Exception;

use function sprintf;

/** @psalm-immutable */
class InvalidLockMode extends Exception
{
    public static function fromLockMode(int $lockMode): self
    {
        return new self(
            sprintf(
                'Lock mode %d is invalid. The valid values are LockMode::NONE, LockMode::OPTIMISTIC'
                    . ', LockMode::PESSIMISTIC_READ and LockMode::PESSIMISTIC_WRITE',
                $lockMode,
            ),
        );
    }
}

Zerion Mini Shell 1.0