ChangeTrackingPolicy   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

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