File tree Expand file tree Collapse file tree
gen-src/ChromeDevtoolsProtocol/Model/Overlay Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,13 +18,23 @@ final class GetHighlightObjectForTestRequest implements \JsonSerializable
1818 */
1919 public $ nodeId ;
2020
21+ /**
22+ * Whether to include distance info.
23+ *
24+ * @var bool|null
25+ */
26+ public $ includeDistance ;
27+
2128
2229 public static function fromJson ($ data )
2330 {
2431 $ instance = new static ();
2532 if (isset ($ data ->nodeId )) {
2633 $ instance ->nodeId = (int )$ data ->nodeId ;
2734 }
35+ if (isset ($ data ->includeDistance )) {
36+ $ instance ->includeDistance = (bool )$ data ->includeDistance ;
37+ }
2838 return $ instance ;
2939 }
3040
@@ -35,6 +45,9 @@ public function jsonSerialize()
3545 if ($ this ->nodeId !== null ) {
3646 $ data ->nodeId = $ this ->nodeId ;
3747 }
48+ if ($ this ->includeDistance !== null ) {
49+ $ data ->includeDistance = $ this ->includeDistance ;
50+ }
3851 return $ data ;
3952 }
4053
Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ final class GetHighlightObjectForTestRequestBuilder
1313{
1414 private $ nodeId ;
1515
16+ private $ includeDistance ;
17+
1618
1719 /**
1820 * Validate non-optional parameters and return new instance.
@@ -24,6 +26,7 @@ public function build(): GetHighlightObjectForTestRequest
2426 throw new BuilderException ('Property [nodeId] is required. ' );
2527 }
2628 $ instance ->nodeId = $ this ->nodeId ;
29+ $ instance ->includeDistance = $ this ->includeDistance ;
2730 return $ instance ;
2831 }
2932
@@ -38,4 +41,16 @@ public function setNodeId($nodeId): self
3841 $ this ->nodeId = $ nodeId ;
3942 return $ this ;
4043 }
44+
45+
46+ /**
47+ * @param bool|null $includeDistance
48+ *
49+ * @return self
50+ */
51+ public function setIncludeDistance ($ includeDistance ): self
52+ {
53+ $ this ->includeDistance = $ includeDistance ;
54+ return $ this ;
55+ }
4156}
Original file line number Diff line number Diff line change 1220812208 "name": "nodeId",
1220912209 "description": "Id of the node to get highlight object for.",
1221012210 "$ref": "DOM.NodeId"
12211+ },
12212+ {
12213+ "name": "includeDistance",
12214+ "description": "Whether to include distance info.",
12215+ "optional": true,
12216+ "type": "boolean"
1221112217 }
1221212218 ],
1221312219 "returns": [
Original file line number Diff line number Diff line change 1- 1d1acf33c4e525cecb1f5d8f9aab3c60 protocol.json
1+ 3a9dad035e06f723b67e454fa1c25861 protocol.json
You can’t perform that action at this time.
0 commit comments