Completed
Push — master ( 4b1e3c...30d3d2 )
by Jesse
02:57
created

TriedPlayingCardOutOfTurn   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 12
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A aggregateId() 0 3 1
1
<?php declare(strict_types=1);
2
3
namespace Stratadox\CardGame\Match\Event;
4
5
use Stratadox\CardGame\CorrelationId;
6
use Stratadox\CardGame\RefusalEvent;
7
8
final class TriedPlayingCardOutOfTurn implements RefusalEvent
9
{
10
    private $correlationId;
11
12
    public function __construct(CorrelationId $correlationId)
13
    {
14
        $this->correlationId = $correlationId;
15
    }
16
17
    public function aggregateId(): CorrelationId
18
    {
19
        return $this->correlationId;
20
    }
21
}
22