File tree Expand file tree Collapse file tree 1 file changed +8
-40
lines changed Expand file tree Collapse file tree 1 file changed +8
-40
lines changed Original file line number Diff line number Diff line change 8
8
*/
9
9
final class UserNote
10
10
{
11
- /** @var string $id */
12
- public $ id ;
13
-
14
- /** @var string $sect */
15
- public $ sect ;
16
-
17
- /** @var string $rate */
18
- public $ rate ;
19
-
20
- /** @var string $ts */
21
- public $ ts ;
22
-
23
- /** @var string $user */
24
- public $ user ;
25
-
26
- /** @var string $text */
27
- public $ text ;
28
-
29
- /** @var int $upvotes */
30
- public $ upvotes ;
31
-
32
- /** @var int $downvotes */
33
- public $ downvotes ;
34
-
35
11
public function __construct (
36
- string $ id ,
37
- string $ sect ,
38
- string $ rate ,
39
- string $ ts ,
40
- string $ user ,
41
- string $ text ,
42
- int $ upvotes = 0 ,
43
- int $ downvotes = 0
12
+ public string $ id ,
13
+ public string $ sect ,
14
+ public string $ rate ,
15
+ public string $ ts ,
16
+ public string $ user ,
17
+ public string $ text ,
18
+ public int $ upvotes = 0 ,
19
+ public int $ downvotes = 0
44
20
) {
45
- $ this ->id = $ id ;
46
- $ this ->sect = $ sect ;
47
- $ this ->rate = $ rate ;
48
- $ this ->ts = $ ts ;
49
- $ this ->user = $ user ;
50
- $ this ->text = $ text ;
51
- $ this ->upvotes = $ upvotes ;
52
- $ this ->downvotes = $ downvotes ;
53
21
}
54
22
}
You can’t perform that action at this time.
0 commit comments