Promocodes   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 12
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getFacadeAccessor() 0 4 1
1
<?php
2
3
namespace Gabievi\Promocodes\Facades;
4
5
use Gabievi\Promocodes\Models\Promocode;
6
use Illuminate\Support\Collection;
7
use Illuminate\Support\Facades\Facade;
8
9
/**
10
 * Class Promocodes
11
 * @package Gabievi\Promocodes\Facades
12
 * @method static array output(int $amount = 1)
13
 * @method static Collection create(int $amount = 1, float $reward = null, array $data = [], int $expires_in = null, int $quantity = null, bool $is_disposable = false)
14
 * @method static Collection createDisposable(int $amount = 1, float $reward = null, array $data = [], int $expires_in = null, int $quantity = null)
15
 * @method static bool|Promocode check(string $code)
16
 * @method static bool|Promocode apply(string $code)
17
 * @method static bool|Promocode redeem(string $code)
18
 * @method static bool disable(string $code)
19
 * @method static void clearRedundant()
20
 * @method static Promocode[]|\Illuminate\Database\Eloquent\Collection all()
21
 * @method static bool isSecondUsageAttempt(Promocode $promocode)
22
 */
23
class Promocodes extends Facade
24
{
25
    /**
26
     * Get the registered name of the component.
27
     *
28
     * @return string
29
     */
30
    protected static function getFacadeAccessor()
31
    {
32
        return 'promocodes';
33
    }
34
}
35