Failed Conditions
Pull Request — release/3.0.0-dev (#32)
by Yo
01:46
created

AbstractOnBatchSubRequestProcessEvent   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 19
ccs 0
cts 5
cp 0
rs 10
c 0
b 0
f 0
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
    public function __construct(int $itemPosition)
18
    {
19
        $this->itemPosition = $itemPosition;
20
    }
21
22
    /**
23
     * @return int
24
     */
25
    public function getItemPosition() : int
26
    {
27
        return $this->itemPosition;
28
    }
29
}
30