Handler::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
c 0
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 1
1
<?php
2
declare(strict_types=1);
3
4
namespace OniBus\Attributes;
5
6
use Attribute;
7
8
#[Attribute(Attribute::TARGET_METHOD)]
9
class Handler
10
{
11
    /**
12
     * @var string|null
13
     */
14
    protected $message;
15
16
    public function __construct(string $message = null)
17
    {
18
        $this->message = $message;
19
    }
20
21
    public function getMessage(): ?string
22
    {
23
        return $this->message;
24
    }
25
}
26