AdminSetting::getStripeApiSecretKey()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
c 0
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
4
namespace Mongi\Mongicommerce\Models;
5
6
use Illuminate\Database\Eloquent\Factories\HasFactory;
7
use Illuminate\Database\Eloquent\Model;
8
9
class AdminSetting extends Model
10
{
11
    use HasFactory;
12
13
    public static function getStripeApiKey(){
14
        $globalSetting = self::first();
15
        return $globalSetting->stripe_api_key;
16
    }
17
18
    public static function getStripeApiSecretKey(){
19
        $globalSetting = self::first();
20
        return $globalSetting->stripe_api_secret;
21
    }
22
23
    public static function getIban(){
24
        $globalSetting = self::first();
25
        return $globalSetting->iban;
26
    }
27
28
}
29