Cart   A
last analyzed

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
 * Cart 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 inc(string $itemIdentifier)
20
 * @method static dec(string $itemIdentifier)
21
 * @method static string insert(Item $param)
22
 */
23
class Cart extends Facade
24
{
25 4
    protected static function getFacadeAccessor(): string
26
    {
27 4
        return 'cart';
28
    }
29
}
30