CommandHandlerDescriptor::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 7
ccs 4
cts 4
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 2
crap 1
1
<?php
2
/******************************************************************************
3
 * Copyright (c) 2016 Constantin Galbenu <[email protected]>             *
4
 ******************************************************************************/
5
6
namespace Gica\Cqrs\Command\ValueObject;
7
8
9
class CommandHandlerDescriptor
10
{
11
12
    /**
13
     * @var string
14
     */
15
    private $handlerClass;
16
    /**
17
     * @var string
18
     */
19
    private $methodName;
20
21 21
    public function __construct(
22
        string $handlerClass, string $methodName
23
    )
24
    {
25 21
        $this->handlerClass = $handlerClass;
26 21
        $this->methodName = $methodName;
27 21
    }
28
29
    /**
30
     * @return string
31
     */
32 12
    public function getHandlerClass(): string
33
    {
34 12
        return $this->handlerClass;
35
    }
36
37
    /**
38
     * @return string
39
     */
40 20
    public function getMethodName(): string
41
    {
42 20
        return $this->methodName;
43
    }
44
}