Passed
Push — main ( 06f4a1...94bef5 )
by Carsten
03:51
created

Cart   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 2
c 0
b 0
f 0
dl 0
loc 5
ccs 2
cts 2
cp 1
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getFacadeAccessor() 0 3 1
1
<?php
2
3
namespace Lenius\LaravelEcommerce\Facades;
4
5
use Illuminate\Support\Facades\Facade;
6
use Lenius\Basket\Item;
7
8
/**
9
 * Basket facade
10
 *
11
 * @method static array contents()
12
 * @method static int totalItems()
13
 * @method static float total($includeTax = true)
14
 * @method static float tax()
15
 * @method static item(string $itemIdentifier)
16
 * @method static remove(string $itemIdentifier)
17
 * @method static float weight()
18
 * @method static destroy()
19
 * @method static string insert(Item $param)
20
 */
21
class Cart extends Facade
22
{
23 4
    protected static function getFacadeAccessor(): string
24
    {
25 4
        return 'cart';
26
    }
27
}
28