Payment   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 10
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getFacadeAccessor() 0 3 1
1
<?php
2
3
namespace Shetabit\Payment\Facade;
4
5
use Illuminate\Support\Facades\Facade;
6
use Shetabit\Multipay\Invoice;
7
use Shetabit\Multipay\Contracts\ReceiptInterface;
8
use Shetabit\Multipay\Payment as MultipayPayment;
9
10
/**
11
 * Class Payment
12
 *
13
 * @method static MultipayPayment config($key, $value = null)
14
 * @method static MultipayPayment callbackUrl($url = null)
15
 * @method static MultipayPayment resetCallbackUrl()
16
 * @method static MultipayPayment amount($amount)
17
 * @method static MultipayPayment detail($key, $value = null)
18
 * @method static MultipayPayment transactionId($id)
19
 * @method static MultipayPayment via($driver)
20
 * @method static MultipayPayment purchase(Invoice $invoice = null, $finalizeCallback = null)
21
 * @method static mixed pay($initializeCallback = null)
22
 * @method static ReceiptInterface verify($finalizeCallback = null)
23
 *
24
 * @package Shetabit\Payment\Facade
25
 * @see \Shetabit\Multipay\Payment
26
 */
27
class Payment extends Facade
28
{
29
    /**
30
     * Get the registered name of the component.
31
     *
32
     * @return string
33
     */
34
    public static function getFacadeAccessor()
35
    {
36
        return 'shetabit-payment';
37
    }
38
}
39