Completed
Push — master ( 4803b3...959101 )
by Frank
03:46
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 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 4 1
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 1
    public function handle(Message $message)
13
    {
14 1
        $this->handled[] = $message;
15
    }
16
}