Completed
Push — master ( 2fa681...c8ac20 )
by Constantin
03:18
created

CommandDispatcher::tryDispatchCommandAndSaveAggregate()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 12
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 12
ccs 6
cts 6
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 6
nc 1
nop 1
crap 1
1
<?php
2
/******************************************************************************
3
 * Copyright (c) 2016 Constantin Galbenu <[email protected]>             *
4
 ******************************************************************************/
5
6
namespace Gica\Cqrs\Command;
7
8
9
use Gica\Cqrs\Command;
10
11
interface CommandDispatcher
12
{
13
    public function dispatchCommand(Command $command, $metadata = null);
14
15
    public function canExecuteCommand(Command $command): bool;
16
}