Skip to content

Commit 2b49680

Browse files
authored
Merge pull request #14 from piolet/patch-1
Add simulation mode
2 parents 68c6e89 + 2760122 commit 2b49680

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/Request/BaseRequest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ abstract class BaseRequest
1111

1212
/** @var string */
1313
protected $method;
14+
15+
protected bool $simulationMode;
1416

1517
/**
1618
* @return string
@@ -27,6 +29,11 @@ public function getUri(): string
2729
{
2830
return $this->uri;
2931
}
32+
33+
public function setSimulationMode(bool $mode): void
34+
{
35+
$this->simulationMode = $mode;
36+
}
3037

3138
abstract public function getQueryArray(): array;
3239

src/Request/VocalCampaign/SendVocalCampaignRequest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ public function getQueryArray(): array
5959
'voice_gender' => $this->voiceGender,
6060
'voice_language' => $this->voiceLanguage,
6161
'send_at' => $this->sendAt,
62+
'simulation_mode' => $this->simulationMode,
6263
],
6364
];
6465

0 commit comments

Comments
 (0)