LockMode.php 385 Bytes
Newer Older
1 2 3 4 5
<?php

namespace Doctrine\DBAL;

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

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