Completed
Pull Request — master (#80)
by Jan Philipp
01:46
created

LogMessage::getMessage()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php declare(strict_types=1);
2
3
namespace Shopware\Psh\ScriptRuntime;
4
5
class LogMessage
6
{
7
8
    /**
9
     * @var string
10
     */
11
    private $message;
12
    /**
13
     * @var bool
14
     */
15
    private $error;
16
17
    public function __construct(string $message, bool $error)
18
    {
19
        $this->message = $message;
20
        $this->error = $error;
21
    }
22
23
    /**
24
     * @return string
25
     */
26
    public function getMessage(): string
27
    {
28
        return $this->message;
29
    }
30
31
    /**
32
     * @return bool
33
     */
34
    public function isError(): bool
35
    {
36
        return $this->error;
37
    }
38
}
39