Completed
Push — master ( 860638...4d5894 )
by Frank
02:47 queued 01:15
created

SynchronousConsumerStub   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 0
dl 0
loc 9
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace EventSauce\EventSourcing\Integration\SynchronousDispatching;
4
5
use EventSauce\EventSourcing\Consumer;
6
use EventSauce\EventSourcing\Message;
7
8
final class SynchronousConsumerStub implements Consumer
9
{
10
    public $handled = [];
11
12
    public function handle(Message $message)
13
    {
14
        $this->handled[] = $message;
15
    }
16
}