File tree 1 file changed +3
-38
lines changed
1 file changed +3
-38
lines changed Original file line number Diff line number Diff line change 10
10
11
11
class WebView
12
12
{
13
- private $ ffi ;
13
+ private FFI $ ffi ;
14
14
15
15
private $ webview ;
16
16
@@ -40,96 +40,62 @@ public function __construct(
40
40
$ this ->webview = $ this ->ffi ->webview_create ((int )$ this ->debug , null );
41
41
}
42
42
43
- /**
44
- * @return FFI
45
- */
46
43
public function getFFI (): FFI
47
44
{
48
45
return $ this ->ffi ;
49
46
}
50
47
51
- /**
52
- * @return mixed
53
- */
54
- public function getWebview ()
48
+ public function getWebview (): mixed
55
49
{
56
50
return $ this ->webview ;
57
51
}
58
52
59
-
60
- /**
61
- * @return string
62
- */
63
53
public function getTitle (): string
64
54
{
65
55
return $ this ->title ;
66
56
}
67
57
68
- /**
69
- * @param string $title
70
- */
71
58
public function setTitle (string $ title ): self
72
59
{
73
60
$ this ->title = $ title ;
74
61
75
62
return $ this ;
76
63
}
77
64
78
- /**
79
- * @return int
80
- */
81
65
public function getWidth (): int
82
66
{
83
67
return $ this ->width ;
84
68
}
85
69
86
- /**
87
- * @param int $width
88
- */
89
70
public function setWidth (int $ width ): self
90
71
{
91
72
$ this ->width = $ width ;
92
73
93
74
return $ this ;
94
75
}
95
76
96
- /**
97
- * @return int
98
- */
99
77
public function getHeight (): int
100
78
{
101
79
return $ this ->height ;
102
80
}
103
81
104
- /**
105
- * @param int $height
106
- */
107
82
public function setHeight (int $ height ): void
108
83
{
109
84
$ this ->height = $ height ;
110
85
}
111
86
112
- /**
113
- * @return WindowSizeHint
114
- */
115
87
public function getHint (): WindowSizeHint
116
88
{
117
89
return $ this ->hint ;
118
90
}
119
91
120
- /**
121
- * @param WindowSizeHint $hint
122
- */
123
92
public function setHint (WindowSizeHint $ hint ): self
124
93
{
125
94
$ this ->hint = $ hint ;
126
95
127
96
return $ this ;
128
97
}
129
98
130
- /**
131
- * @return bool
132
- */
133
99
public function isDebug (): bool
134
100
{
135
101
return $ this ->debug ;
@@ -214,7 +180,6 @@ public function terminate(): self
214
180
}
215
181
216
182
/**
217
- * @return string
218
183
* @throws OsException
219
184
*/
220
185
private function getDefaultLibraryFile (): string
@@ -233,4 +198,4 @@ private function getDefaultLibraryFile(): string
233
198
234
199
return $ this ->libraryFile ;
235
200
}
236
- }
201
+ }
You can’t perform that action at this time.
0 commit comments