Completed
Push — master ( 52ead2...fd316a )
by David
12s queued 10s
created

PayloadException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A emptyPayload() 0 3 1
1
<?php
2
3
namespace TheAentMachine\AentDockerCompose\Command\Exception;
4
5
class PayloadException extends EventCommandException
6
{
7
    /**
8
     * @param string $event
9
     * @return PayloadException
10
     */
11
    public static function emptyPayload(string $event): PayloadException
12
    {
13
        return new self('payload missing for the event : ' . $event);
14
    }
15
}
16