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

EventCommand::setPayload()   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
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