Promocodes::getFacadeAccessor()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
rs 10
cc 1
nc 1
nop 0
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