Observe   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 16
c 1
b 0
f 1
dl 0
loc 26
ccs 0
cts 8
cp 0
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A all() 0 10 1
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