Completed
Pull Request — master (#7)
by
unknown
02:49
created

EventEnum::getHandledEvents()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 5
nc 1
nop 0
dl 0
loc 7
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
namespace TheAentMachine\AentDockerCompose\Aenthill\Enum;
4
5
class EventEnum
6
{
7
    public const ADD = 'ADD';
8
    public const REMOVE = 'REMOVE';
9
    public const ASKING_FOR_DOCKER_SERVICE_INFO = 'ASKING_FOR_DOCKER_SERVICE_INFO';
10
    public const NEW_DOCKER_SERVICE_INFO = 'NEW_DOCKER_SERVICE_INFO';
11
    public const DELETE_DOCKER_SERVICE = 'DELETE_DOCKER_SERVICE';
12
13
    /**
14
     * @return string[]
15
     */
16
    public static function getHandledEvents(): array
17
    {
18
        return array(
19
            self::ADD,
20
            self::REMOVE,
21
            self::NEW_DOCKER_SERVICE_INFO,
22
            self::DELETE_DOCKER_SERVICE
23
        );
24
    }
25
}
26