File tree Expand file tree Collapse file tree 3 files changed +28
-6
lines changed Expand file tree Collapse file tree 3 files changed +28
-6
lines changed Original file line number Diff line number Diff line change 22
33namespace BNETDocs \Models \Server ;
44
5- class Index extends \BNETDocs \Models \ActiveUser
5+ class Index extends \BNETDocs \Models \ActiveUser implements \JsonSerializable
66{
77 public ?array $ server_types = null ;
88 public ?array $ servers = null ;
99 public ?array $ status_bitmasks = null ;
10+
11+ public function jsonSerialize (): mixed
12+ {
13+ return \array_merge (parent ::jsonSerialize (), [
14+ 'server_types ' => $ this ->server_types ,
15+ 'servers ' => $ this ->servers ,
16+ 'status_bitmasks ' => $ this ->status_bitmasks ,
17+ ]);
18+ }
1019}
Original file line number Diff line number Diff line change 22
33namespace BNETDocs \Models \Server ;
44
5- class UpdateJob extends \BNETDocs \Models \ActiveUser
5+ class UpdateJob extends \BNETDocs \Models \ActiveUser implements \JsonSerializable
66{
7- public int $ old_status_bitmask = 0 ;
8- public ?\BNETDocs \Libraries \Server \Server $ server = null ;
7+ public int $ old_status_bitmask = 0 ;
8+ public ?\BNETDocs \Libraries \Server \Server $ server = null ;
9+
10+ public function jsonSerialize (): mixed
11+ {
12+ return \array_merge (parent ::jsonSerialize (), [
13+ 'old_status_bitmask ' => $ this ->old_status_bitmask ,
14+ 'server ' => $ this ->server ,
15+ ]);
16+ }
917}
Original file line number Diff line number Diff line change 22
33namespace BNETDocs \Models \Server ;
44
5- class View extends \BNETDocs \Models \ActiveUser
5+ class View extends \BNETDocs \Models \ActiveUser implements \JsonSerializable
66{
7- public ?\BNETDocs \Libraries \Server \Server $ server = null ;
7+ public ?\BNETDocs \Libraries \Server \Server $ server = null ;
8+
9+ public function jsonSerialize (): mixed
10+ {
11+ return \array_merge (parent ::jsonSerialize (), ['server ' => $ this ->server ]);
12+ }
813}
You can’t perform that action at this time.
0 commit comments