SingleCommandHandler   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 12
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
6
namespace Bruli\EventBusBundleTests\Behaviour;
7
8
9
use Bruli\EventBusBundle\CommandBus\CommandHandlerInterface;
10
use Bruli\EventBusBundle\CommandBus\CommandInterface;
11
12
final class SingleCommandHandler implements CommandHandlerInterface
13
{
14
    const FILE_TEST = 'test.txt';
15
16
    /**
17
     * @param CommandInterface $command
18
     */
19
    public function handle(CommandInterface $command)
20
    {
21
        file_put_contents(__DIR__. '/../Behaviour/' . self::FILE_TEST , 'testing');
22
    }
23
}