Failed Conditions
Push — master ( ddb3cd...4476ec )
by Marco
11:47
created

ChangeTrackingPolicy   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 30
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
/**
8
 * Class ChangeTrackingPolicy
9
 */
10
final class ChangeTrackingPolicy
11
{
12
    /**
13
     * DEFERRED_IMPLICIT means that changes of entities are calculated at commit-time
14
     * by doing a property-by-property comparison with the original data. This will
15
     * be done for all entities that are in MANAGED state at commit-time.
16
     *
17
     * This is the default change tracking policy.
18
     */
19
    public const DEFERRED_IMPLICIT = 'DEFERRED_IMPLICIT';
20
21
    /**
22
     * DEFERRED_EXPLICIT means that changes of entities are calculated at commit-time
23
     * by doing a property-by-property comparison with the original data. This will
24
     * be done only for entities that were explicitly saved (through persist() or a cascade).
25
     */
26
    public const DEFERRED_EXPLICIT = 'DEFERRED_EXPLICIT';
27
28
    /**
29
     * NOTIFY means that Doctrine relies on the entities sending out notifications when their
30
     * properties change. Such entity classes must implement the <tt>NotifyPropertyChanged</tt>
31
     * interface.
32
     */
33
    public const NOTIFY = 'NOTIFY';
34
35
    /**
36
     * Will break upon instantiation.
37
     */
38
    private function __construct()
39
    {
40
    }
41
}
42