File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 8
8
9
9
class ViewModel implements Model, ContextAware
10
10
{
11
- protected string $ _preferredView ;
11
+ protected string $ _defaultView ;
12
12
13
13
use ContextAwareTrait;
14
14
use WithContextTrait;
@@ -19,17 +19,17 @@ public function jsonSerialize()
19
19
return empty ($ values ) ? $ this : $ values ;
20
20
}
21
21
22
- public function setPreferredView (string $ viewClass )
22
+ public function setDefaultView (string $ viewClass )
23
23
{
24
- $ this ->_preferredView = $ viewClass ;
24
+ $ this ->_defaultView = $ viewClass ;
25
25
return $ this ;
26
26
}
27
27
28
28
public function createView (string $ viewClass = null )
29
29
{
30
- if ($ viewClass === null && !empty ($ this ->_preferredView ))
30
+ if ($ viewClass === null && !empty ($ this ->_defaultView ))
31
31
{
32
- $ viewClass = $ this ->_preferredView ;
32
+ $ viewClass = $ this ->_defaultView ;
33
33
}
34
34
35
35
if ($ viewClass === '' || !class_exists ($ viewClass ))
You can’t perform that action at this time.
0 commit comments