AdminSetting   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 3
eloc 8
c 0
b 0
f 0
dl 0
loc 17
rs 10

3 Methods

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