Completed
Push — master ( ae5fca...d9758b )
by Julien
13s
created

CannotHandleAddEventCommand::executeEvent()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
4
namespace TheAentMachine\Command;
5
6
use TheAentMachine\Exception\EventException;
7
use TheAentMachine\Exception\MissingEnvironmentVariableException;
8
9
class CannotHandleAddEventCommand extends EventCommand
10
{
11
    protected function getEventName(): string
12
    {
13
        return 'ADD';
14
    }
15
16
    /**
17
     * @param null|string $payload
18
     * @return null|string
19
     * @throws EventException
20
     * @throws MissingEnvironmentVariableException
21
     */
22
    protected function executeEvent(?string $payload): ?string
23
    {
24
        throw EventException::cannotHandleAddEvent();
25
    }
26
}
27