SeparateBusReceiver   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 10
wmc 1
lcom 1
cbo 2
ccs 2
cts 2
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 4 1
1
<?php
2
3
namespace League\Tactician\Bernard\Receiver;
4
5
use Bernard\Message;
6
use League\Tactician\Bernard\Receiver;
7
8
/**
9
 * Receives a Message from a Consumer and handles it
10
 */
11
final class SeparateBusReceiver extends Receiver
12
{
13
    /**
14
     * {@inheritdoc}
15
     */
16 2
    public function handle(Message $message)
17
    {
18 2
        return $this->commandBus->handle($message);
19
    }
20
}
21