CommandHandlerDescriptor   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 36
ccs 8
cts 8
cp 1
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
A getHandlerClass() 0 4 1
A getMethodName() 0 4 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
}