SystemSetting::scopeFrontPageBannerText()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
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