Completed
Push — master ( f0448f...4201d1 )
by Julien
14s
created

EventCommand   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 22
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setPayload() 0 3 1
A setLog() 0 3 1
1
<?php
2
namespace TheAentMachine\AentDockerCompose\Command;
3
4
use Symfony\Component\Console\Command\Command;
5
use TheAentMachine\AentDockerCompose\Aenthill\Log;
6
7
abstract class EventCommand extends Command
8
{
9
    /** @var Log */
10
    protected $log;
11
12
    /** @var null|string */
13
    protected $payload;
14
15
    /**
16
     * @param Log $log
17
     */
18
    public function setLog(Log $log): void
19
    {
20
        $this->log = $log;
21
    }
22
23
    /**
24
     * @param null|string $payload
25
     */
26
    public function setPayload(?string $payload): void
27
    {
28
        $this->payload = $payload;
29
    }
30
}
31