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

EventEnum   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 18
rs 10
c 0
b 0
f 0
wmc 1

1 Method

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