KsqlErrorMessage::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 2
1
<?php
2
declare(strict_types=1);
3
4
namespace Ytake\KsqlClient\Entity;
5
6
/**
7
 * Class KsqlErrorMessage
8
 */
9
class KsqlErrorMessage implements EntityInterface
10
{
11
    /** @var string */
12
    protected $message;
13
14
    /** @var array */
15
    protected $stackTrace;
16
17
    /**
18
     * @param string $message
19
     * @param array  $stackTrace
20
     */
21
    public function __construct(string $message, array $stackTrace)
22
    {
23
        $this->message = $message;
24
        $this->stackTrace = $stackTrace;
25
    }
26
27
    /**
28
     * @return string
29
     */
30
    public function getMessage(): string
31
    {
32
        return $this->message;
33
    }
34
    
35
    /**
36
     * @return array
37
     */
38
    public function getStackTrace(): array
39
    {
40
        return $this->stackTrace;
41
    }
42
}
43