1 | <?php namespace Anomaly\ConfigurationModule\Configuration; |
||
18 | class ConfigurationModel extends ConfigurationConfigurationEntryModel implements ConfigurationInterface |
||
19 | { |
||
20 | |||
21 | /** |
||
22 | * Return the value field. |
||
23 | * |
||
24 | * @return FieldType |
||
25 | */ |
||
26 | public function field() |
||
37 | |||
38 | /** |
||
39 | * Get the key. |
||
40 | * |
||
41 | * @return string |
||
42 | */ |
||
43 | public function getKey() |
||
47 | |||
48 | /** |
||
49 | * Set the key. |
||
50 | * |
||
51 | * @param $key |
||
52 | * @return $this |
||
53 | */ |
||
54 | public function setKey($key) |
||
60 | |||
61 | /** |
||
62 | * Get the scope. |
||
63 | * |
||
64 | * @return mixed |
||
65 | */ |
||
66 | public function getScope() |
||
70 | |||
71 | /** |
||
72 | * Set the scope. |
||
73 | * |
||
74 | * @param $scope |
||
75 | * @return $this |
||
76 | */ |
||
77 | public function setScope($scope) |
||
83 | |||
84 | /** |
||
85 | * Get the value. |
||
86 | * |
||
87 | * @return mixed |
||
88 | */ |
||
89 | public function getValue() |
||
93 | |||
94 | /** |
||
95 | * Set the value. |
||
96 | * |
||
97 | * @param $value |
||
98 | * @return $this |
||
99 | */ |
||
100 | public function setValue($value) |
||
106 | |||
107 | /** |
||
108 | * Set the value. |
||
109 | * |
||
110 | * @param $value |
||
111 | * @return $this |
||
112 | */ |
||
113 | protected function setValueAttribute($value) |
||
119 | |||
120 | /** |
||
121 | * Get the value attribute. |
||
122 | * |
||
123 | * @return mixed |
||
124 | */ |
||
125 | protected function getValueAttribute() |
||
133 | |||
134 | /** |
||
135 | * Get the field type's presenter |
||
136 | * for a given field slug. |
||
137 | * |
||
138 | * We're overriding this to catch |
||
139 | * the "value" key. |
||
140 | * |
||
141 | * @param $fieldSlug |
||
142 | * @return FieldTypePresenter |
||
143 | */ |
||
144 | public function getFieldTypePresenter($fieldSlug) |
||
152 | } |
||
153 |