PreSecondMiddleWareHandler::handle()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 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 PreSecondMiddleWareHandler implements CommandHandlerInterface
13
{
14
    const FILE_TEST = 'pre-second-middleware.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
}