Passed
Pull Request — master (#27)
by Sébastien
02:36
created

SmartCheckout   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getFacadeAccessor() 0 3 1
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