1 | <?php |
||
7 | class Preference extends EloquentModel |
||
8 | { |
||
9 | /** |
||
10 | * [$fillable description]. |
||
11 | * |
||
12 | * @var [type] |
||
13 | */ |
||
14 | protected $fillable = ['key', 'value', 'type']; |
||
15 | |||
16 | /** |
||
17 | * [getDefault description]. |
||
18 | * |
||
19 | * @param \Timegridio\Concierge\Traits\Preferenceable $model [description] |
||
|
|||
20 | * @param [type] $key [description] |
||
21 | * |
||
22 | * @return [type] [description] |
||
23 | */ |
||
24 | 1 | public static function getDefault($model, $key) |
|
38 | |||
39 | /** |
||
40 | * [question description]. |
||
41 | * |
||
42 | * @return [type] [description] |
||
43 | */ |
||
44 | public function question() |
||
48 | |||
49 | /** |
||
50 | * [help description]. |
||
51 | * |
||
52 | * @return [type] [description] |
||
53 | */ |
||
54 | public function help() |
||
58 | |||
59 | /** |
||
60 | * [scopeForKey description]. |
||
61 | * |
||
62 | * @param [type] $query [description] |
||
63 | * @param [type] $key [description] |
||
64 | * |
||
65 | * @return [type] [description] |
||
66 | */ |
||
67 | 7 | public function scopeForKey($query, $key) |
|
71 | |||
72 | /** |
||
73 | * Value getter. |
||
74 | * |
||
75 | * @return mixed |
||
76 | */ |
||
77 | 7 | public function value() |
|
81 | |||
82 | /** |
||
83 | * Type getter. |
||
84 | * |
||
85 | * @return string |
||
86 | */ |
||
87 | 7 | public function type() |
|
91 | } |
||
92 |