Passed
Pull Request — main (#3)
by Carsten
04:00
created

Cart::getFacadeAccessor()   A

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
 * 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