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

EventOrder   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 30
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 30
ccs 8
cts 8
cp 1
rs 10
c 0
b 0
f 0

3 Methods

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