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

ClassMethod   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 4
eloc 11
dl 0
loc 37
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A class() 0 3 1
A method() 0 3 1
A message() 0 3 1
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