Cart::getFacadeAccessor()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
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