Passed
Push — master ( 068631...f59242 )
by Svaťa
12:34
created

CartUseCase   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 9
dl 0
loc 26
ccs 12
cts 12
cp 1
rs 10
c 1
b 0
f 0
wmc 5
1
<?php
2
3
namespace Simara\Cart\Application;
4
5
use Simara\Cart\Domain\Cart\CartDetail;
6
7
interface CartUseCase
8
{
9
    public function add(string $cartId, string $productId, int $amount): void;
10
11
    public function detail(string $cartId): CartDetail;
12
}
13