Completed
Push — master ( 0ba8e7...85306e )
by Paweł
06:26
created

SignUpHandler::handle()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 7
rs 9.4286
cc 2
eloc 4
nc 2
nop 1
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