Completed
Push — master ( 501885...84dd9c )
by Constantin
03:18
created

EventOrder::getSequence()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
/**
3
 * Copyright (c) 2017 Constantin Galbenu <[email protected]>
4
 */
5
6
namespace Gica\Cqrs\Saga;
7
8
9
class EventOrder
10
{
11
    /**
12
     * @var int
13
     */
14
    private $sequence;
15
    /**
16
     * @var int
17
     */
18
    private $index;
19
20 6
    public function __construct(
21
        int $sequence,
22
        int $index
23
    )
24
    {
25 6
        $this->sequence = $sequence;
26 6
        $this->index = $index;
27 6
    }
28
29 1
    public function getSequence(): int
30
    {
31 1
        return $this->sequence;
32
    }
33
34 1
    public function getIndex(): int
35
    {
36 1
        return $this->index;
37
    }
38
}