SmartCheckout::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 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
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 Sebdesign\VivaPayments\Facades;
4
5
use Illuminate\Support\Facades\Facade;
6
7
/**
8
 * @method static \Sebdesign\VivaPayments\Card cards()
9
 * @method static \Sebdesign\VivaPayments\Order orders()
10
 * @method static \Sebdesign\VivaPayments\Transaction transactions()
11
 * @method static \Sebdesign\VivaPayments\Webhook webhooks()
12
 * @method static \Sebdesign\VivaPayments\Webhook withEnvironment(\Sebdesign\VivaPayments\Enums\Environment|string $environment)
13
 * @method static \Sebdesign\VivaPayments\Webhook withBasicAuthCredentials(string $merchantId, string $apiKey)
14
 * @method static \Sebdesign\VivaPayments\Webhook withOAuthCredentials(string $clientId, string $clientSecret)
15
 * @method static \Sebdesign\VivaPayments\Webhook withToken(string $token)
16
 */
17
class SmartCheckout extends Facade
18
{
19
    /**
20
     * Get the registered name of the component.
21
     *
22
     * @return string
23
     *
24
     * @throws \RuntimeException
25
     */
26 12
    protected static function getFacadeAccessor()
27
    {
28 12
        return \Sebdesign\VivaPayments\Client::class;
29
    }
30
}
31