AbstractOnBatchSubRequestProcessEvent   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 19
ccs 4
cts 4
cp 1
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getItemPosition() 0 3 1
A __construct() 0 3 1
1
<?php
2
namespace Yoanm\JsonRpcServer\Domain\Event\Acknowledge;
3
4
use Yoanm\JsonRpcServer\Domain\Event\JsonRpcServerEvent;
5
6
/**
7
 * Class AbstractOnBatchSubRequestProcessEvent
8
 */
9
class AbstractOnBatchSubRequestProcessEvent implements JsonRpcServerEvent
10
{
11
    /** @var int */
12
    private $itemPosition;
13
14
    /**
15
     * @param int $itemPosition
16
     */
17 10
    public function __construct(int $itemPosition)
18
    {
19 10
        $this->itemPosition = $itemPosition;
20
    }
21
22
    /**
23
     * @return int
24
     */
25 2
    public function getItemPosition() : int
26
    {
27 2
        return $this->itemPosition;
28
    }
29
}
30