CacheUsage   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 22
ccs 0
cts 1
cp 0
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 2 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Doctrine\ORM\Mapping;
6
7
final class CacheUsage
8
{
9
    /**
10
     * ReadOnly cache can do reads, inserts and deletes, cannot perform updates or employ any locks,
11
     */
12
    public const READ_ONLY = 'READ_ONLY';
13
14
    /**
15
     * Read Write Attempts to lock the entity before update/delete.
16
     */
17
    public const READ_WRITE = 'READ_WRITE';
18
19
    /**
20
     * Nonstrict Read Write Cache doesn’t employ any locks but can do inserts, update and deletes.
21
     */
22
    public const NONSTRICT_READ_WRITE = 'NONSTRICT_READ_WRITE';
23
24
    /**
25
     * Will break upon instantiation.
26
     */
27
    private function __construct()
28
    {
29
    }
30
}
31