SystemSetting   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 3
Bugs 0 Features 2
Metric Value
wmc 4
c 3
b 0
f 2
lcom 1
cbo 1
dl 0
loc 34
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A scopeAskDestlerText() 0 4 1
A scopeDjHoursFormLocation() 0 4 1
A scopeCdSignoutFormLocation() 0 4 1
A scopeFrontPageBannerText() 0 4 1
1
<?php namespace WITR;
2
3
use Illuminate\Database\Eloquent\Model;
4
5
class SystemSetting extends Model {
6
7
	/**
8
	 * The attributes that are mass assignable.
9
	 *
10
	 * @var array
11
	 */
12
	protected $fillable = ['value', 'enabled'];
13
14
	const AskDestlerTextID = 1;
15
	const DJHoursFormLocationID = 2;
16
	const CDSignoutFormLocationID = 3;
17
	const FrontPageBannerTextID = 4;
18
19
	public static function scopeAskDestlerText()
20
	{
21
		return self::find(self::AskDestlerTextID);
22
	}
23
24
	public static function scopeDjHoursFormLocation()
25
	{
26
		return self::find(self::DJHoursFormLocationID);
27
	}
28
29
	public static function scopeCdSignoutFormLocation()
30
	{
31
		return self::find(self::CDSignoutFormLocationID);
32
	}
33
34
	public static function scopeFrontPageBannerText()
35
	{
36
		return self::find(self::FrontPageBannerTextID);
37
	}
38
}
39