LockMode.php 411 Bytes
Newer Older
1 2
<?php

Michael Moravec's avatar
Michael Moravec committed
3 4
declare(strict_types=1);

5 6 7
namespace Doctrine\DBAL;

/**
Benjamin Morel's avatar
Benjamin Morel committed
8
 * Contains all DBAL LockModes.
9 10 11
 */
class LockMode
{
12 13 14 15
    public const NONE              = 0;
    public const OPTIMISTIC        = 1;
    public const PESSIMISTIC_READ  = 2;
    public const PESSIMISTIC_WRITE = 4;
16

Benjamin Morel's avatar
Benjamin Morel committed
17 18 19 20 21 22
    /**
     * Private constructor. This class cannot be instantiated.
     */
    final private function __construct()
    {
    }
Benjamin Eberlei's avatar
Benjamin Eberlei committed
23
}