Observe::all()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 8
c 1
b 0
f 1
nc 1
nop 0
dl 0
loc 10
ccs 0
cts 8
cp 0
crap 2
rs 10
1
<?php
2
3
namespace Nip\Records\EventManager\Events;
4
5
/**
6
 * Class Observe
7
 * @package Nip\Records\EventManager\Events
8
 */
9
class Observe
10
{
11
    public const RETRIEVED = 'retrieved';
12
13
    public const CREATING = 'creating';
14
    public const CREATED = 'created';
15
16
    public const UPDATING = 'updating';
17
    public const UPDATED = 'updated';
18
19
    public const DELETING = 'deleting';
20
    public const DELETED = 'deleted';
21
22
    /**
23
     * @return string[]
24
     */
25
    public static function all()
26
    {
27
        return [
28
            static::RETRIEVED,
29
            static::CREATING,
30
            static::CREATED,
31
            static::UPDATING,
32
            static::UPDATED,
33
            static::DELETING,
34
            static::DELETED,
35
        ];
36
    }
37
}
38