Passed
Push — main ( dae7cc...12f243 )
by Breno
01:47
created

ClassMethod::class()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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