SignUpHandler   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 7 2
1
<?php
2
3
namespace examples\Clearcode\CommandBusConsole\Application;
4
5
final class SignUpHandler
6
{
7
    public function handle(SignUp $command)
8
    {
9
        var_dump($command);
0 ignored issues
show
Security Debugging Code introduced by
var_dump($command); looks like debug code. Are you sure you do not want to remove it? This might expose sensitive data.
Loading history...
10
        if ('error' === $command->id) {
11
            throw new \Exception('Error while executing command occurred.');
12
        }
13
    }
14
}
15