Completed
Pull Request — master (#42)
by Julien
02:42
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
8
class CannotHandleAddEventCommand extends EventCommand
9
{
10
    protected function getEventName(): string
11
    {
12
        return 'ADD';
13
    }
14
15
    /**
16
     * @param null|string $payload
17
     * @return null|string
18
     * @throws EventException
19
     * @throws \TheAentMachine\Exception\MissingEnvironmentVariableException
20
     */
21
    protected function executeEvent(?string $payload): ?string
22
    {
23
        throw EventException::cannotHandleAddEvent();
24
    }
25
}
26