Skip to content

Commit ecfd5a4

Browse files
feat: add setters to constant parameters
1 parent a59b880 commit ecfd5a4

3 files changed

Lines changed: 33 additions & 0 deletions

File tree

src/Sessions/SessionStartParams/BrowserbaseSessionCreateParams/Proxies/ProxyConfigList/BrowserbaseProxyConfig.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,17 @@ public static function with(
5858
return $self;
5959
}
6060

61+
/**
62+
* @param 'browserbase' $type
63+
*/
64+
public function withType(string $type): self
65+
{
66+
$self = clone $this;
67+
$self['type'] = $type;
68+
69+
return $self;
70+
}
71+
6172
public function withDomainPattern(string $domainPattern): self
6273
{
6374
$self = clone $this;

src/Sessions/SessionStartParams/BrowserbaseSessionCreateParams/Proxies/ProxyConfigList/ExternalProxyConfig.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,17 @@ public function withServer(string $server): self
8888
return $self;
8989
}
9090

91+
/**
92+
* @param 'external' $type
93+
*/
94+
public function withType(string $type): self
95+
{
96+
$self = clone $this;
97+
$self['type'] = $type;
98+
99+
return $self;
100+
}
101+
91102
public function withDomainPattern(string $domainPattern): self
92103
{
93104
$self = clone $this;

src/Sessions/StreamEvent/Data/StreamEventLogDataOutput.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,15 @@ public function withMessage(string $message): self
7171

7272
return $self;
7373
}
74+
75+
/**
76+
* @param 'running' $status
77+
*/
78+
public function withStatus(string $status): self
79+
{
80+
$self = clone $this;
81+
$self['status'] = $status;
82+
83+
return $self;
84+
}
7485
}

0 commit comments

Comments
 (0)